aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keydb.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-06-05 15:04:33 +0000
committerWerner Koch <[email protected]>2024-06-05 15:04:33 +0000
commit77afc9ee1c75a28083edf6d98888f9b472c3e39d (patch)
treef1178f2db721cc404602110cf9227deaaa037a98 /g10/keydb.h
parentgpg: Do not show RENC if no key capabilities are found for a key. (diff)
downloadgnupg-77afc9ee1c75a28083edf6d98888f9b472c3e39d.tar.gz
gnupg-77afc9ee1c75a28083edf6d98888f9b472c3e39d.zip
gpg: Add magic parameter "default" to --quick-add-adsk.
* g10/getkey.c (has_key_with_fingerprint): New. * g10/keyedit.c (menu_addadsk): Replace code by new function. (keyedit_quick_addadsk): Handle magic arg "default". * g10/keygen.c (append_all_default_adsks): New. -- GnuPG-bug-id: 6882
Diffstat (limited to 'g10/keydb.h')
-rw-r--r--g10/keydb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/keydb.h b/g10/keydb.h
index 9cb63cf73..d96debeb7 100644
--- a/g10/keydb.h
+++ b/g10/keydb.h
@@ -485,6 +485,10 @@ int parse_auto_key_locate(const char *options);
int parse_key_origin (char *string);
const char *key_origin_string (int origin);
+/* Return an error if KEYBLOCK has a primary or subkey with the fpr. */
+gpg_error_t has_key_with_fingerprint (kbnode_t keyblock,
+ const byte *fpr, size_t fprlen);
+
/*-- keyid.c --*/
int pubkey_letter( int algo );
char *pubkey_string (PKT_public_key *pk, char *buffer, size_t bufsize);