]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2030. [bug] We were being overly conservative when disabling
authorMark Andrews <marka@isc.org>
Tue, 23 May 2006 04:52:11 +0000 (04:52 +0000)
committerMark Andrews <marka@isc.org>
Tue, 23 May 2006 04:52:11 +0000 (04:52 +0000)
                        openssl engine support. [RT #16030]

CHANGES
lib/dns/openssl_link.c

diff --git a/CHANGES b/CHANGES
index c5d7ab5395f3fcc60127dab92441a162f76e484b..052cd024314899283265631296f390cf0e813fd0 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2030.  [bug]           We were being overly conservative when disabling
+                       openssl engine support. [RT #16030]
+
 2029.  [bug]           host printed out the server multiple times when
                        specified on the command line. [RT #15992]
 
index 62eac05f30a02492f6e1090e5cd0063225a5cfea..c74d57611f464b9c72a768372db9163781ebccc8 100644 (file)
@@ -18,7 +18,7 @@
 
 /*
  * Principal Author: Brian Wellington
- * $Id: openssl_link.c,v 1.1.4.1 2004/12/09 04:07:18 marka Exp $
+ * $Id: openssl_link.c,v 1.1.4.2 2006/05/23 04:52:11 marka Exp $
  */
 #ifdef OPENSSL
 
@@ -39,7 +39,7 @@
 #include <openssl/rand.h>
 #include <openssl/crypto.h>
 
-#if defined(CRYPTO_LOCK_ENGINE) && (OPENSSL_VERSION_NUMBER < 0x00907000L)
+#if defined(CRYPTO_LOCK_ENGINE) && (OPENSSL_VERSION_NUMBER != 0x00907000L)
 #define USE_ENGINE 1
 #endif
 
@@ -160,7 +160,7 @@ dst__openssl_init() {
                goto cleanup_rm;
        }
        ENGINE_set_RAND(e, rm);
-       RAND_set_rand_method(e);
+       RAND_set_rand_method(rm);
 #else
        RAND_set_rand_method(rm);
 #endif