]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
s/OPENSSL_USE_ECDSA/HAVE_OPENSSL_ECDSA 3851/head
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 11 May 2016 15:43:28 +0000 (17:43 +0200)
committermind04 <mind04@monshouwer.org>
Wed, 11 May 2016 15:43:28 +0000 (17:43 +0200)
m4/ax_check_openssl.m4
pdns/opensslsigners.cc

index 12207f9ff25ade54361634a61a73f1e864541f3c..587b29d348ca3192a96f8b49d02f989bbe71032c 100644 (file)
@@ -119,7 +119,7 @@ AC_DEFUN([AX_CHECK_OPENSSL], [
                 openssl_ecdsa=no
             ])
             AS_IF([test "x$openssl_ecdsa" = "xyes"], [
-                AC_DEFINE([OPENSSL_USE_ECDSA], [1], [define to 1 if OpenSSL ecdsa support is avalable.])
+                AC_DEFINE([HAVE_OPENSSL_ECDSA], [1], [define to 1 if OpenSSL ecdsa support is avalable.])
             ])
             $1
         ], [
index c420c43a771a40a4e6c7c326d9dfe0ab274a295c..3894cd7584e8b0113c91e3c3705e0c64126bf3a6 100644 (file)
@@ -2,7 +2,7 @@
 #include "config.h"
 #endif
 #include <openssl/obj_mac.h>
-#ifdef OPENSSL_USE_ECDSA
+#ifdef HAVE_OPENSSL_ECDSA
 #include <openssl/ecdsa.h>
 #endif
 #include <openssl/sha.h>
@@ -418,7 +418,7 @@ void OpenSSLRSADNSCryptoKeyEngine::fromPublicKeyString(const std::string& input)
   d_key = key;
 }
 
-#ifdef OPENSSL_USE_ECDSA
+#ifdef HAVE_OPENSSL_ECDSA
 class OpenSSLECDSADNSCryptoKeyEngine : public DNSCryptoKeyEngine
 {
 public:
@@ -731,7 +731,7 @@ namespace {
       DNSCryptoKeyEngine::report(7, &OpenSSLRSADNSCryptoKeyEngine::maker);
       DNSCryptoKeyEngine::report(8, &OpenSSLRSADNSCryptoKeyEngine::maker);
       DNSCryptoKeyEngine::report(10, &OpenSSLRSADNSCryptoKeyEngine::maker);
-#ifdef OPENSSL_USE_ECDSA
+#ifdef HAVE_OPENSSL_ECDSA
       DNSCryptoKeyEngine::report(13, &OpenSSLECDSADNSCryptoKeyEngine::maker);
       DNSCryptoKeyEngine::report(14, &OpenSSLECDSADNSCryptoKeyEngine::maker);
 #endif