From fd765df6a7883c3d841abeb657330a1aab4b7756 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 26 Apr 2016 21:57:56 +0200 Subject: 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 --- dirmngr/ks-engine-hkp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dirmngr/ks-engine-hkp.c') diff --git a/dirmngr/ks-engine-hkp.c b/dirmngr/ks-engine-hkp.c index eca02f001..636eaf781 100644 --- a/dirmngr/ks-engine-hkp.c +++ b/dirmngr/ks-engine-hkp.c @@ -991,7 +991,7 @@ send_request (ctrl_t ctrl, const char *request, const char *hostportstr, *r_fp = NULL; - err = http_session_new (&session, NULL, httphost); + err = http_session_new (&session, NULL, httphost, HTTP_FLAG_TRUST_DEF); if (err) goto leave; http_session_set_log_cb (session, cert_log_cb); -- cgit v1.2.3