From: Remi Gacogne Date: Mon, 7 Feb 2022 14:15:02 +0000 (+0100) Subject: dnsdist: Use OpenSSL as the default TLS provider in client mode X-Git-Tag: rec-4.7.0-alpha1~9^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51793ad3efa51fa1b6063cc149d4ce2dd5acc73f;p=thirdparty%2Fpdns.git dnsdist: Use OpenSSL as the default TLS provider in client mode --- diff --git a/pdns/tcpiohandler.cc b/pdns/tcpiohandler.cc index 9e47fe2b3b..c85ef7d77c 100644 --- a/pdns/tcpiohandler.cc +++ b/pdns/tcpiohandler.cc @@ -1796,13 +1796,14 @@ std::shared_ptr getTLSContext(const TLSContextParameters& params) } #endif /* HAVE_LIBSSL */ } -#ifdef HAVE_GNUTLS - return std::make_shared(params); -#else /* HAVE_GNUTLS */ + #ifdef HAVE_LIBSSL return std::make_shared(params); -#endif /* HAVE_LIBSSL */ +#else /* HAVE_LIBSSL */ +#ifdef HAVE_GNUTLS + return std::make_shared(params); #endif /* HAVE_GNUTLS */ +#endif /* HAVE_LIBSSL */ #endif /* HAVE_DNS_OVER_TLS */ return nullptr;