]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix for compile without warnings with openssl 1.1.0.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 1 Sep 2016 12:23:59 +0000 (12:23 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 1 Sep 2016 12:23:59 +0000 (12:23 +0000)
git-svn-id: file:///svn/unbound/trunk@3840 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/net_help.c

index 33587cda51d4cf21aed7f60187f943f39793d9d9..b5ce4e72da6400fb014b5695298568bcef70a140 100644 (file)
@@ -1,5 +1,6 @@
 1 September 2016: Wouter
        - RFC 7958 is now out, updated docs for unbound-anchor.
+       - Fix for compile without warnings with openssl 1.1.0.
 
 29 August 2016: Wouter
        - Fix #777: OpenSSL 1.1.0 compatibility, patch from Sebastian A.
index 5d6c033d659793714e1135467cdb7bcf08507286..248598918b8e1514ebcf08a58d8d3e4aa3fc9a07 100644 (file)
@@ -783,7 +783,7 @@ void* outgoing_ssl_fd(void* sslctx, int fd)
 #endif
 }
 
-#if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) && defined(CRYPTO_LOCK)
+#if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) && defined(CRYPTO_LOCK) && OPENSSL_VERSION_NUMBER < 0x10100000L
 /** global lock list for openssl locks */
 static lock_basic_t *ub_openssl_locks = NULL;
 
@@ -808,7 +808,7 @@ ub_crypto_lock_cb(int mode, int type, const char *ATTR_UNUSED(file),
 
 int ub_openssl_lock_init(void)
 {
-#if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) && defined(CRYPTO_LOCK)
+#if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) && defined(CRYPTO_LOCK) && OPENSSL_VERSION_NUMBER < 0x10100000L
        int i;
        ub_openssl_locks = (lock_basic_t*)reallocarray(
                NULL, (size_t)CRYPTO_num_locks(), sizeof(lock_basic_t));
@@ -825,7 +825,7 @@ int ub_openssl_lock_init(void)
 
 void ub_openssl_lock_delete(void)
 {
-#if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) && defined(CRYPTO_LOCK)
+#if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) && defined(CRYPTO_LOCK) && OPENSSL_VERSION_NUMBER < 0x10100000L
        int i;
        if(!ub_openssl_locks)
                return;