From 799aa185934c388edb5cf2046637e67579ac0bce Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 20 Jul 2023 10:09:12 +0200 Subject: [PATCH] misc: `pdns::getMessageFromErrno()` does not depend on libcrypto This prevents compiling dnsdist when libcrypto is not available, which should be possible. --- pdns/misc.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/misc.hh b/pdns/misc.hh index 1a40a14d2b..179c27b508 100644 --- a/pdns/misc.hh +++ b/pdns/misc.hh @@ -49,7 +49,6 @@ class DNSName; typedef enum { TSIG_MD5, TSIG_SHA1, TSIG_SHA224, TSIG_SHA256, TSIG_SHA384, TSIG_SHA512, TSIG_GSS } TSIGHashEnum; namespace pdns { -#if defined(HAVE_LIBCRYPTO) /** * \brief Retrieves the errno-based error message in a reentrant way. * @@ -63,6 +62,7 @@ namespace pdns */ auto getMessageFromErrno(int errnum) -> std::string; +#if defined(HAVE_LIBCRYPTO) namespace OpenSSL { /** -- 2.47.2