aboutsummaryrefslogtreecommitdiffstats
path: root/g10/export.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-05-27 08:40:38 +0000
committerWerner Koch <[email protected]>2019-05-27 09:41:35 +0000
commitd9b31d3a20b89a5ad7e9a2158b6da63a9a37fa8a (patch)
tree3526f573373af50b928a5ec3cf8fee2e2f2fc45b /g10/export.c
parentagent: Stop scdaemon after reload when disable_scdaemon. (diff)
downloadgnupg-d9b31d3a20b89a5ad7e9a2158b6da63a9a37fa8a.tar.gz
gnupg-d9b31d3a20b89a5ad7e9a2158b6da63a9a37fa8a.zip
gpg: Allow deletion of subkeys with --delete-[secret-]key.
* common/userids.c (classify_user_id): Do not set the EXACT flag in the default case. * g10/export.c (exact_subkey_match_p): Make static, * g10/delkey.c (do_delete_key): Implement subkey only deleting. -- GnuPG-bug-id: 4457
Diffstat (limited to 'g10/export.c')
-rw-r--r--g10/export.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/export.c b/g10/export.c
index 70f52615c..4216a2449 100644
--- a/g10/export.c
+++ b/g10/export.c
@@ -428,8 +428,8 @@ new_subkey_list_item (KBNODE node)
(keyID or fingerprint) and does match the one at NODE. It is
assumed that the packet at NODE is either a public or secret
subkey. */
-static int
-exact_subkey_match_p (KEYDB_SEARCH_DESC *desc, KBNODE node)
+int
+exact_subkey_match_p (KEYDB_SEARCH_DESC *desc, kbnode_t node)
{
u32 kid[2];
byte fpr[MAX_FINGERPRINT_LEN];