#include <sodium.h>
#endif /* HAVE_LIBSODIUM */
-dnsdist_tickets_key_added_hook TLSCtx::s_ticketsKeyAddedHook{nullptr};
+TLSCtx::tickets_key_added_hook TLSCtx::s_ticketsKeyAddedHook{nullptr};
#if defined(HAVE_DNS_OVER_TLS) || defined(HAVE_DNS_OVER_HTTPS)
#ifdef HAVE_LIBSSL
bool d_resumedFromInactiveTicketKey{false};
};
-using dnsdist_tickets_key_added_hook = std::function<void(const std::string& key)>;
-
class TLSCtx
{
public:
return false;
}
- static void setTicketsKeyAddedHook(const dnsdist_tickets_key_added_hook& hook)
+ using tickets_key_added_hook = std::function<void(const std::string& key)>;
+
+ static void setTicketsKeyAddedHook(const tickets_key_added_hook& hook)
{
TLSCtx::s_ticketsKeyAddedHook = hook;
}
- static const dnsdist_tickets_key_added_hook& getTicketsKeyAddedHook()
+ static const tickets_key_added_hook& getTicketsKeyAddedHook()
{
return TLSCtx::s_ticketsKeyAddedHook;
}
time_t d_ticketsKeyRotationDelay{0};
private:
- static dnsdist_tickets_key_added_hook s_ticketsKeyAddedHook;
+ static tickets_key_added_hook s_ticketsKeyAddedHook;
};
class TLSFrontend