diff options
author | Werner Koch <[email protected]> | 2020-09-10 07:13:59 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-09-10 08:50:39 +0000 |
commit | faabc49797df43c4904b6230f83e8c6677e88b22 (patch) | |
tree | 906e753ef8d8878eeca2d8292dde734d1edba6e5 /dirmngr/http-ntbtls.c | |
parent | scd: Flush KDF DO (0x00F9) when it's being set. (diff) | |
download | gnupg-faabc49797df43c4904b6230f83e8c6677e88b22.tar.gz gnupg-faabc49797df43c4904b6230f83e8c6677e88b22.zip |
dirmngr: Align the gnutls use of CAs with the ntbtls code.
* dirmngr/http.c (http_session_new) <gnutls>: Use only the special
pool certificate for the default keyserver.
--
The gnutls version uses a different strategy than the ntbtls version
on when to use the special SKS pool certificate. This patch aligns it
so that we don't need to wonder about different kind of bug reports.
In short the special cert is now the only cert use with the default
keyserver.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'dirmngr/http-ntbtls.c')
-rw-r--r-- | dirmngr/http-ntbtls.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dirmngr/http-ntbtls.c b/dirmngr/http-ntbtls.c index 924b8b25f..ae5cf5519 100644 --- a/dirmngr/http-ntbtls.c +++ b/dirmngr/http-ntbtls.c @@ -77,8 +77,10 @@ gnupg_http_tls_verify_cb (void *opaque, validate_flags = VALIDATE_FLAG_TLS; - /* If we are using the standard hkps:// pool use the dedicated - * root certificate. */ + /* If we are using the standard hkps:// pool use the dedicated root + * certificate. Note that this differes from the GnuTLS + * implementation which uses this special certificate only if no + * other certificates are configured. */ hostname = ntbtls_get_hostname (tls); if (hostname && !ascii_strcasecmp (hostname, get_default_keyserver (1))) |