From: Remi Gacogne Date: Thu, 20 Jul 2023 08:09:12 +0000 (+0200) Subject: misc: `pdns::getMessageFromErrno()` does not depend on libcrypto X-Git-Tag: rec-5.0.0-alpha1~100^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13052%2Fhead;p=thirdparty%2Fpdns.git misc: `pdns::getMessageFromErrno()` does not depend on libcrypto This prevents compiling dnsdist when libcrypto is not available, which should be possible. --- 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 { /**