]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Use OpenSSL as the default TLS provider in client mode
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 7 Feb 2022 14:15:02 +0000 (15:15 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 22 Feb 2022 09:00:59 +0000 (10:00 +0100)
pdns/tcpiohandler.cc

index 9e47fe2b3bd824548e4bfdb739dc4b804dba9c54..c85ef7d77c328aad6919cab512e871d13076fe38 100644 (file)
@@ -1796,13 +1796,14 @@ std::shared_ptr<TLSCtx> getTLSContext(const TLSContextParameters& params)
     }
 #endif /* HAVE_LIBSSL */
   }
-#ifdef HAVE_GNUTLS
-  return std::make_shared<GnuTLSIOCtx>(params);
-#else /* HAVE_GNUTLS */
+
 #ifdef HAVE_LIBSSL
   return std::make_shared<OpenSSLTLSIOCtx>(params);
-#endif /* HAVE_LIBSSL */
+#else /* HAVE_LIBSSL */
+#ifdef HAVE_GNUTLS
+  return std::make_shared<GnuTLSIOCtx>(params);
 #endif /* HAVE_GNUTLS */
+#endif /* HAVE_LIBSSL */
 
 #endif /* HAVE_DNS_OVER_TLS */
   return nullptr;