1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch 845d5e61d8
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
2023-09-26 13:58:31 +02:00
..
2018-10-25 16:53:05 -04:00
2023-06-20 09:08:14 +09:00
2023-03-20 19:24:49 +01:00
2021-01-19 10:33:03 +01:00
2017-03-03 17:17:26 +01:00
2023-09-26 13:58:31 +02:00
2023-09-26 13:58:31 +02:00
2017-03-07 20:25:54 +09:00
2023-08-24 11:25:30 +02:00
2017-03-07 20:25:54 +09:00
2021-12-17 13:33:40 +09:00
2010-06-09 16:53:51 +00:00
2018-11-05 09:00:02 +01:00
2011-02-04 12:57:53 +01:00
2022-02-27 12:26:38 +01:00