[v9_9] fix fedora 17 ecdsa compilation problem

(cherry picked from commit c241017dcd)
This commit is contained in:
Evan Hunt 2012-10-24 13:57:10 -07:00
parent 3ee2049149
commit c06eae9b1b

View 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;