http: Allow to request system defined CAs for TLS.
authorWerner Koch <wk@gnupg.org>
Tue, 26 Apr 2016 19:57:56 +0000 (21:57 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 26 Apr 2016 19:57:56 +0000 (21:57 +0200)
commitfd765df6a7883c3d841abeb657330a1aab4b7756
tree9f267dcc9800f1aa3461948079c767a5fe6d86d4
parent07dbd061bd6c1f131f1d609b412675a128c5fe99
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 <wk@gnupg.org>
dirmngr/http.c
dirmngr/http.h
dirmngr/ks-engine-hkp.c
dirmngr/ks-engine-http.c
dirmngr/t-http.c