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/certcache.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/certcache.c')
-rw-r--r-- | dirmngr/certcache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dirmngr/certcache.c b/dirmngr/certcache.c index 5486997b6..87f605eab 100644 --- a/dirmngr/certcache.c +++ b/dirmngr/certcache.c @@ -721,6 +721,9 @@ cert_cache_init (strlist_t hkp_cacerts) load_certs_from_dir (fname, 0); xfree (fname); + /* Put the special pool certificate into our store. This is + * currently only used with ntbtls. For GnuTLS http_session_new + * unfortunately loads that certificate directly from the file. */ fname = make_filename_try (gnupg_datadir (), "sks-keyservers.netCA.pem", NULL); if (fname) |