diff options
author | Werner Koch <[email protected]> | 2020-04-16 16:01:37 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-04-16 16:03:13 +0000 |
commit | f5efbd5a1169ca7700f430a4a26ba086e603c887 (patch) | |
tree | 285f9b675e1757267dc99cdd58c46d4fc947f88d /sm/keylist.c | |
parent | dirmngr: Allow http URLs with "LOOKUP --url" (diff) | |
download | gnupg-f5efbd5a1169ca7700f430a4a26ba086e603c887.tar.gz gnupg-f5efbd5a1169ca7700f430a4a26ba086e603c887.zip |
sm: Lookup missing issuers first using authorityInfoAccess.
* sm/call-dirmngr.c (gpgsm_dirmngr_lookup): Add optional arg URL and
adjust all callers.
* sm/certchain.c (oidstr_caIssuers): New.
(struct find_up_store_certs_s): Add additional fields.
(find_up_store_certs_cb): Store the fingerprint.
(find_up_via_auth_info_access): New.
(find_up): Try the AIA URI first.
--
Note that --auto-issuer-key-retrieve is required to use that.
GnuPG-bug-id: 4898
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'sm/keylist.c')
-rw-r--r-- | sm/keylist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/keylist.c b/sm/keylist.c index 4eecb8720..1fd2892ce 100644 --- a/sm/keylist.c +++ b/sm/keylist.c @@ -1648,7 +1648,7 @@ list_external_keys (ctrl_t ctrl, strlist_t names, estream_t fp, int raw_mode) parm.with_chain = ctrl->with_chain; parm.raw_mode = raw_mode; - rc = gpgsm_dirmngr_lookup (ctrl, names, 0, list_external_cb, &parm); + rc = gpgsm_dirmngr_lookup (ctrl, names, NULL, 0, list_external_cb, &parm); if (gpg_err_code (rc) == GPG_ERR_EOF || rc == -1 || gpg_err_code (rc) == GPG_ERR_NOT_FOUND) rc = 0; /* "Not found" is not an error here. */ |