gpg: Prepare some key cleaning function for use with secret key packets.
authorWerner Koch <wk@gnupg.org>
Tue, 17 Jan 2017 08:14:44 +0000 (09:14 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 17 Jan 2017 08:14:44 +0000 (09:14 +0100)
commitadbfbf608e75cdd72ae7b3a538b91bc0e236a18f
tree0c43b87b13ceeefe3a4439d61f514da88ae3acf7
parente6aebfe3d0f16c483296fd125b66a44017fe15f4
gpg: Prepare some key cleaning function for use with secret key packets.

* g10/trust.c (mark_usable_uid_certs): Allow use of secret key packets.
(clean_sigs_from_uid): Ditto.
(clean_uid_from_key): Ditto.
(clean_one_uid): Ditto.
(clean_key): Ditto.
--

Since 2.1 secret keys and public keys use identical data structure and
thus we should not restrict those key cleaning functions to work only
with public key packets.  This change has no immediate effect but may
come handy in the future.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/trust.c