]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Support for OpenSSL 1.1.0:
authorRainer Jung <rjung@apache.org>
Wed, 10 Aug 2016 20:32:40 +0000 (20:32 +0000)
committerRainer Jung <rjung@apache.org>
Wed, 10 Aug 2016 20:32:40 +0000 (20:32 +0000)
- ERR_remove_thread_state() no longer has an
  argument.

Backport of r1735878 from trunk.

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

modules/ssl/mod_ssl.c

index 2101844b9f596c2b20e5d20c44114e216c884325..a1ff3be852e312eb6d23fc90095cf67c15cbef62 100644 (file)
@@ -312,7 +312,15 @@ static apr_status_t ssl_cleanup_pre_config(void *data)
 #if HAVE_ENGINE_LOAD_BUILTIN_ENGINES
     ENGINE_cleanup();
 #endif
+#if OPENSSL_VERSION_NUMBER >= 0x1000000fL
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+    ERR_remove_thread_state(NULL);
+#else
+    ERR_remove_thread_state();
+#endif
+#else
     ERR_remove_state(0);
+#endif
 
     /* Don't call ERR_free_strings in earlier versions, ERR_load_*_strings only
      * actually loaded the error strings once per process due to static