mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
dirmngr: Support https for KS_FETCH.
* dirmngr/ks-engine-hkp.c (cert_log_cb): Move to ... * dirmngr/misc.c (cert_log_cb): here. * dirmngr/ks-engine-http.c (ks_http_fetch): Support 307-redirection and https. -- Note that this requires that the root certificates are registered using the --hkp-cacert option. Eventually we may introduce a separate option to allow using different CAs for KS_FETCH and keyserver based requests.
This commit is contained in:
parent
3b20cc21de
commit
84419f42da
4 changed files with 48 additions and 35 deletions
|
@ -68,6 +68,10 @@ void dump_string (const char *string);
|
|||
TEXT. This is used for debugging. */
|
||||
void dump_cert (const char *text, ksba_cert_t cert);
|
||||
|
||||
/* Callback to print infos about the TLS certificates. */
|
||||
void cert_log_cb (http_session_t sess, gpg_error_t err,
|
||||
const char *hostname, const void **certs, size_t *certlens);
|
||||
|
||||
/* Return the host name and the port (0 if none was given) from the
|
||||
URL. Return NULL on error or if host is not included in the
|
||||
URL. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue