]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Remove calling ERR_remove_thread_state when
authorRainer Jung <rjung@apache.org>
Wed, 10 Aug 2016 21:17:37 +0000 (21:17 +0000)
committerRainer Jung <rjung@apache.org>
Wed, 10 Aug 2016 21:17:37 +0000 (21:17 +0000)
using OpenSSL 1.1.0.

This API is now a no-op in OpenSSL 1.1.0 and
deprecated.

Backport of r1755725 from trunk.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x-openssl-1.1.0-compat@1755868 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/mod_ssl.c

index ae1c57c0cd2a524e5e365c993e1b4ae93f6e1da3..bf9edb28d8cd0a76ab8748961d27b3b7c7405453 100644 (file)
@@ -312,10 +312,12 @@ static apr_status_t ssl_cleanup_pre_config(void *data)
 #if HAVE_ENGINE_LOAD_BUILTIN_ENGINES
     ENGINE_cleanup();
 #endif
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
 #if OPENSSL_VERSION_NUMBER >= 0x1000000fL
     ERR_remove_thread_state(NULL);
 #else
     ERR_remove_state(0);
+#endif
 #endif
 
     /* Don't call ERR_free_strings in earlier versions, ERR_load_*_strings only