summaryrefslogtreecommitdiffstats
path: root/g10/keydb.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-04-25 20:03:07 +0200
committerWerner Koch <wk@gnupg.org>2021-04-25 20:03:07 +0200
commit100037ac0f558e8959fc065d4703c85c2962489e (patch)
tree67bbdbb9102b4c8b1701fbb054280b64f25af184 /g10/keydb.h
parentscd:p15: Fix last commit and improve D-TRUST detection. (diff)
downloadgnupg2-100037ac0f558e8959fc065d4703c85c2962489e.tar.xz
gnupg2-100037ac0f558e8959fc065d4703c85c2962489e.zip
gpg: Auto import keys specified with --trusted-keys.
* g10/getkey.c (get_pubkey_with_ldap_fallback): New. * g10/trustdb.c (verify_own_keys): Use it.
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 ed58b9443..4703294f4 100644
--- a/g10/keydb.h
+++ b/g10/keydb.h
@@ -336,6 +336,10 @@ gpg_error_t get_pubkey_for_sig (ctrl_t ctrl,
/* Return the public key with the key id KEYID and store it at PK. */
int get_pubkey (ctrl_t ctrl, PKT_public_key *pk, u32 *keyid);
+/* Same as get_pubkey but with auto LDAP fetch. */
+gpg_error_t get_pubkey_with_ldap_fallback (ctrl_t ctrl,
+ PKT_public_key *pk, u32 * keyid);
+
/* Similar to get_pubkey, but it does not take PK->REQ_USAGE into
account nor does it merge in the self-signed data. This function
also only considers primary keys. */