]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
misc: `pdns::getMessageFromErrno()` does not depend on libcrypto 13052/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Jul 2023 08:09:12 +0000 (10:09 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Jul 2023 08:09:12 +0000 (10:09 +0200)
This prevents compiling dnsdist when libcrypto is not available, which
should be possible.

pdns/misc.hh

index 1a40a14d2bcfb7ff40bfa4b6c7138f0647be55b2..179c27b508c583174cdbe2fd85894417fde9894b 100644 (file)
@@ -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
 {
   /**