From b1f09edc04813ecb9e70f17834ad9796432201cd Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 4 Jul 2024 13:56:21 +0200 Subject: [PATCH] Fix compile error on OPENSSL_VERSION_MAJOR < 3 ../pdns/libssl.cc:637:28: error: no member named 'content' in 'OpenSSLTLSTicketKey' --- pdns/libssl.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/libssl.hh b/pdns/libssl.hh index 9bcf460802..f961c1d25f 100644 --- a/pdns/libssl.hh +++ b/pdns/libssl.hh @@ -100,12 +100,13 @@ public: #if OPENSSL_VERSION_MAJOR >= 3 int encrypt(unsigned char keyName[TLS_TICKETS_KEY_NAME_SIZE], unsigned char* iv, EVP_CIPHER_CTX* ectx, EVP_MAC_CTX* hctx) const; bool decrypt(const unsigned char* iv, EVP_CIPHER_CTX* ectx, EVP_MAC_CTX* hctx) const; - [[nodiscard]] std::string content() const; #else int encrypt(unsigned char keyName[TLS_TICKETS_KEY_NAME_SIZE], unsigned char* iv, EVP_CIPHER_CTX* ectx, HMAC_CTX* hctx) const; bool decrypt(const unsigned char* iv, EVP_CIPHER_CTX* ectx, HMAC_CTX* hctx) const; #endif + [[nodiscard]] std::string content() const; + private: unsigned char d_name[TLS_TICKETS_KEY_NAME_SIZE]; unsigned char d_cipherKey[TLS_TICKETS_CIPHER_KEY_SIZE]; -- 2.47.2