mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
[master] fix fedora 17 ecdsa compilation problem
This commit is contained in:
parent
d65a29175a
commit
c241017dcd
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue