diff options
author | Werner Koch <wk@gnupg.org> | 2017-02-19 10:36:43 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-02-19 10:36:43 +0100 |
commit | 64fffd0ce2a4fd9cba152cf07497b585410cc652 (patch) | |
tree | c0fc74bc3ef44fc1db161e71c55486400a9ab1fa /dirmngr/Makefile.am | |
parent | dirmngr: Add per-session verify callback to http.c (diff) | |
download | gnupg2-64fffd0ce2a4fd9cba152cf07497b585410cc652.tar.xz gnupg2-64fffd0ce2a4fd9cba152cf07497b585410cc652.zip |
dirmngr: First take on ntbtls cert verification.
* dirmngr/http-ntbtls.c: New.
* dirmngr/Makefile.am (dirmngr_SOURCES): Add file.
* dirmngr/dirmngr.h (SERVER_CONTROL_MAGIC): New.
(server_conrol_s): Add field 'magic',
* dirmngr/dirmngr.c (dirmngr_init_default_ctrl): Set MAGIC.
(dirmngr_deinit_default_ctrl): Set MAGIC to deadbeef.
* dirmngr/http.c (my_ntbtls_verify_cb): New.
(http_session_new) [HTTP_USE_NTBTLS]: Remove all CA setting code.
(send_request) [HTTP_USE_NTBTLS]: Set the verify callback. Do not call
the verify callback after the handshake.
* dirmngr/ks-engine-hkp.c (send_request): Pass
gnupg_http_tls_verify_cb to http_session_new.
* dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
* dirmngr/t-http.c (my_http_tls_verify_cb): New.
(main): Rename option --gnutls-debug to --tls-debug.
(main) [HTTP_USE_NTBTLS]: Create a session.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'dirmngr/Makefile.am')
-rw-r--r-- | dirmngr/Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dirmngr/Makefile.am b/dirmngr/Makefile.am index d3f89bcef..7fa42829d 100644 --- a/dirmngr/Makefile.am +++ b/dirmngr/Makefile.am @@ -62,6 +62,7 @@ dirmngr_SOURCES = dirmngr.c dirmngr.h server.c crlcache.c crlfetch.c \ ocsp.c ocsp.h validate.c validate.h \ dns-stuff.c dns-stuff.h \ http.c http.h \ + http-ntbtls.c \ ks-action.c ks-action.h ks-engine.h \ ks-engine-hkp.c ks-engine-http.c ks-engine-finger.c ks-engine-kdns.c |