From: Evan Hunt Date: Wed, 24 Oct 2012 20:56:41 +0000 (-0700) Subject: [master] fix fedora 17 ecdsa compilation problem X-Git-Tag: v9.10.0a1~771 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=c241017dcd1ed1e019140f377a2529c207b60655;p=thirdparty%2Fbind9.git [master] fix fedora 17 ecdsa compilation problem --- diff --git a/lib/dns/openssl_link.c b/lib/dns/openssl_link.c index d97e4470017..56465aa0064 100644 --- a/lib/dns/openssl_link.c +++ b/lib/dns/openssl_link.c @@ -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;