aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/ks-engine-http.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-04-26 19:57:56 +0000
committerWerner Koch <[email protected]>2016-04-26 19:57:56 +0000
commitfd765df6a7883c3d841abeb657330a1aab4b7756 (patch)
tree9f267dcc9800f1aa3461948079c767a5fe6d86d4 /dirmngr/ks-engine-http.c
parentgpg: Add OpenPGP card vendor 0x2342. (diff)
downloadgnupg-fd765df6a7883c3d841abeb657330a1aab4b7756.tar.gz
gnupg-fd765df6a7883c3d841abeb657330a1aab4b7756.zip
http: Allow to request system defined CAs for TLS.
* dirmngr/http.h (HTTP_FLAG_TRUST_DEF, HTTP_FLAG_TRUST_SYS): New. * dirmngr/http.c (http_session_new): Add arg "flags". * dirmngr/ks-engine-hkp.c (send_request): Use new flag HTTP_FLAG_TRUST_DEF for the new arg of http_session_new. * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto. * dirmngr/t-http.c (main): Ditto. -- Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--dirmngr/ks-engine-http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/ks-engine-http.c b/dirmngr/ks-engine-http.c
index 8232313a3..b996c2573 100644
--- a/dirmngr/ks-engine-http.c
+++ b/dirmngr/ks-engine-http.c
@@ -73,7 +73,7 @@ ks_http_fetch (ctrl_t ctrl, const char *url, estream_t *r_fp)
estream_t fp = NULL;
char *request_buffer = NULL;
- err = http_session_new (&session, NULL, NULL);
+ err = http_session_new (&session, NULL, NULL, HTTP_FLAG_TRUST_DEF);
if (err)
goto leave;
http_session_set_log_cb (session, cert_log_cb);