]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] fix fedora 17 ecdsa compilation problem
authorEvan Hunt <each@isc.org>
Wed, 24 Oct 2012 20:56:41 +0000 (13:56 -0700)
committerEvan Hunt <each@isc.org>
Wed, 24 Oct 2012 20:56:41 +0000 (13:56 -0700)
lib/dns/openssl_link.c

index d97e44700175cfa543d8067ff1223aa05c3c3ede..56465aa006454407aa12eda015dd0ac193376616 100644 (file)
@@ -290,7 +290,7 @@ static isc_result_t
 toresult(isc_result_t fallback) {
        isc_result_t result = fallback;
        unsigned long err = ERR_get_error();
-#ifdef ERR_R_ECDSA_LIB
+#ifdef HAVE_OPENSSL_ECDSA
        int lib = ERR_GET_LIB(err);
 #endif
        int reason = ERR_GET_REASON(err);
@@ -304,7 +304,7 @@ toresult(isc_result_t fallback) {
                result = ISC_R_NOMEMORY;
                break;
        default:
-#ifdef ERR_R_ECDSA_LIB
+#ifdef HAVE_OPENSSL_ECDSA
                if (lib == ERR_R_ECDSA_LIB &&
                    reason == ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED) {
                        result = ISC_R_NOENTROPY;