aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/http.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-09-18 15:37:42 +0000
committerWerner Koch <[email protected]>2023-09-26 11:58:31 +0000
commit845d5e61d8e1ed4f25da424cfc5b0bb0fbb8678d (patch)
tree5aa1e45ac87a89971b1d3d43d98d051e407d9ca6 /dirmngr/http.h
parentgpg: Fix --no-utf8-strings. (diff)
downloadgnupg-845d5e61d8e1ed4f25da424cfc5b0bb0fbb8678d.tar.gz
gnupg-845d5e61d8e1ed4f25da424cfc5b0bb0fbb8678d.zip
dirmngr: Cleanup the http module.
* configure.ac (NEED_NTBTLS_VERSION): Require at least 0.2.0 so that we can remove a conditional compilation. * dirmngr/http.c (struct proxy_info_s): New. (release_proxy_info): New to keep proxy information in one object. (send_request): Factor some code out to ... (get_proxy_for_url): this, (send_request_basic_checks): this, (send_request_set_sni): this, (run_ntbtls_handshake): this, (run_gnutls_handshake): and this. -- Note that this also removes some never used code. For example the NTBTLS handshake has code taken from GNUTLS which was never used due to the different ways on how the certificates are checked. The proxy code has been factored out to make to prepare further authentication methods. The proxy_info_t was introduced for the same reason. Tested against gnutls and ntbtls builds. No proxy tests yet done, because we need more sophisticated tests anyway. GnuPG-bug-id: 5768
Diffstat (limited to 'dirmngr/http.h')
-rw-r--r--dirmngr/http.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dirmngr/http.h b/dirmngr/http.h
index e60212761..2994fdfad 100644
--- a/dirmngr/http.h
+++ b/dirmngr/http.h
@@ -132,9 +132,11 @@ typedef gpg_error_t (*http_verify_cb_t) (void *opaque,
void http_set_verbose (int verbose, int debug);
+/* The next three functions are only used with GNUTLS. */
void http_register_tls_callback (gpg_error_t (*cb)(http_t,http_session_t,int));
void http_register_tls_ca (const char *fname);
void http_register_cfg_ca (const char *fname);
+
void http_register_netactivity_cb (void (*cb)(void));