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/gpgsm.h | |
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/gpgsm.h')
-rw-r--r-- | sm/gpgsm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h index 6c68cdab3..60b20cc22 100644 --- a/sm/gpgsm.h +++ b/sm/gpgsm.h @@ -447,7 +447,8 @@ gpg_error_t gpgsm_agent_export_key (ctrl_t ctrl, const char *keygrip, int gpgsm_dirmngr_isvalid (ctrl_t ctrl, ksba_cert_t cert, ksba_cert_t issuer_cert, int use_ocsp); -int gpgsm_dirmngr_lookup (ctrl_t ctrl, strlist_t names, int cache_only, +int gpgsm_dirmngr_lookup (ctrl_t ctrl, strlist_t names, const char *uri, + int cache_only, void (*cb)(void*, ksba_cert_t), void *cb_value); int gpgsm_dirmngr_run_command (ctrl_t ctrl, const char *command, int argc, char **argv); |