From: Remi Gacogne Date: Mon, 14 Feb 2022 18:03:24 +0000 (+0100) Subject: Better GnuTLS warning as suggested by Matt Nordhoff X-Git-Tag: rec-4.7.0-alpha1~13^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11324%2Fhead;p=thirdparty%2Fpdns.git Better GnuTLS warning as suggested by Matt Nordhoff Co-authored-by: Matt Nordhoff --- diff --git a/pdns/tcpiohandler.cc b/pdns/tcpiohandler.cc index 8bdad5c0fc..9e47fe2b3b 100644 --- a/pdns/tcpiohandler.cc +++ b/pdns/tcpiohandler.cc @@ -1576,7 +1576,7 @@ public: if (params.d_caStore.empty()) { #if GNUTLS_VERSION_NUMBER >= 0x030700 && GNUTLS_VERSION_NUMBER < 0x030703 /* see https://gitlab.com/gnutls/gnutls/-/issues/1277 */ - std::cerr<<"Warning: GnuTLS >= 3.7.0 has a known memory leak when validating server certificates in some configurations (PKCS11 support enabled, and a default PKCS11 trust store), please consider using the OpenSSL provider for outgoing connections instead, or explicitely setting a CA store"<= 0x030700 && GNUTLS_VERSION_NUMBER < 0x030703 */ rc = gnutls_certificate_set_x509_system_trust(d_creds.get()); if (rc < 0) {