mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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.
This commit is contained in:
parent
cc5aa68b63
commit
100037ac0f
4 changed files with 47 additions and 7 deletions
|
@ -340,7 +340,7 @@ verify_own_keys (ctrl_t ctrl)
|
|||
PKT_public_key pk;
|
||||
|
||||
memset (&pk, 0, sizeof pk);
|
||||
rc = get_pubkey (ctrl, &pk, k->kid);
|
||||
rc = get_pubkey_with_ldap_fallback (ctrl, &pk, k->kid);
|
||||
if (rc)
|
||||
log_info(_("key %s: no public key for trusted key - skipped\n"),
|
||||
keystr(k->kid));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue