From bb202aac1e41fbf4aa0b069e21da6911bf0bd96d Mon Sep 17 00:00:00 2001 From: Charles-Henri Bruyand Date: Wed, 3 Jul 2024 13:23:30 +0200 Subject: [PATCH] dnsdist: fix build of dnsdist least version --- pdns/dnsdistdist/test-dnsdisttcp_cc.cc | 1 - pdns/tcpiohandler.cc | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdistdist/test-dnsdisttcp_cc.cc b/pdns/dnsdistdist/test-dnsdisttcp_cc.cc index fc397a68ad..2934616ff7 100644 --- a/pdns/dnsdistdist/test-dnsdisttcp_cc.cc +++ b/pdns/dnsdistdist/test-dnsdisttcp_cc.cc @@ -40,7 +40,6 @@ GlobalStateHolder 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, time_t now, bool tcp) { diff --git a/pdns/tcpiohandler.cc b/pdns/tcpiohandler.cc index 931da271bd..897e6672c8 100644 --- a/pdns/tcpiohandler.cc +++ b/pdns/tcpiohandler.cc @@ -11,6 +11,8 @@ const bool TCPIOHandler::s_disableConnectForUnitTests = false; #include #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 { -- 2.47.2