mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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
This commit is contained in:
parent
9ccdd59e4e
commit
d9b31d3a20
5 changed files with 113 additions and 13 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue