]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: fix build of dnsdist least version
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Wed, 3 Jul 2024 11:23:30 +0000 (13:23 +0200)
committerCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Wed, 3 Jul 2024 11:23:30 +0000 (13:23 +0200)
pdns/dnsdistdist/test-dnsdisttcp_cc.cc
pdns/tcpiohandler.cc

index fc397a68ad231c37a19e3cbf9ef7f4b3d8b6c791..2934616ff769dec7272fa9ba599c4b5159e46109 100644 (file)
@@ -40,7 +40,6 @@ GlobalStateHolder<servers_t> g_dstates;
 QueryCount g_qcount;
 
 const bool TCPIOHandler::s_disableConnectForUnitTests = true;
-dnsdist_tickets_key_added_hook TLSCtx::s_ticketsKeyAddedHook{nullptr};
 
 bool checkDNSCryptQuery(const ClientState& cs, PacketBuffer& query, std::unique_ptr<DNSCryptQuery>& dnsCryptQuery, time_t now, bool tcp)
 {
index 931da271bd2c4fcae769eef42e1f78c1bb0f270e..897e6672c829fc0f6f367a1265831231fd96c77b 100644 (file)
@@ -11,6 +11,8 @@ const bool TCPIOHandler::s_disableConnectForUnitTests = false;
 #include <sodium.h>
 #endif /* HAVE_LIBSODIUM */
 
+dnsdist_tickets_key_added_hook TLSCtx::s_ticketsKeyAddedHook{nullptr};
+
 #if defined(HAVE_DNS_OVER_TLS) || defined(HAVE_DNS_OVER_HTTPS)
 #ifdef HAVE_LIBSSL
 
@@ -22,7 +24,6 @@ const bool TCPIOHandler::s_disableConnectForUnitTests = false;
 
 #include "libssl.hh"
 
-dnsdist_tickets_key_added_hook TLSCtx::s_ticketsKeyAddedHook{nullptr};
 
 class OpenSSLFrontendContext
 {