]> granicus.if.org Git - apache/commitdiff
mod_ssl: follow up to r1781187.
authorYann Ylavic <ylavic@apache.org>
Wed, 1 Feb 2017 00:32:59 +0000 (00:32 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 1 Feb 2017 00:32:59 +0000 (00:32 +0000)
The ssl_util_thread_*() functions are not necessary with openssl-1.1+

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1781190 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/mod_ssl.c
modules/ssl/ssl_engine_init.c

index b8f561b03a27664d53f7a65554d4a71dad052f4b..ad2b7880a45ed9f29fc479819bd0b4b975c2083a 100644 (file)
@@ -388,7 +388,9 @@ static int ssl_hook_pre_config(apr_pool_t *pconf,
     /* Some OpenSSL internals are allocated per-thread, make sure they
      * are associated to the/our same thread-id until cleaned up.
      */
+#if APR_HAS_THREADS && OPENSSL_VERSION_NUMBER < 0x10100000L
     ssl_util_thread_id_setup(pconf);
+#endif
 
     /* We must register the library in full, to ensure our configuration
      * code can successfully test the SSL environment.
index 26983842b73e6c8365c77dcb4c13ae6dcd58eb3d..fe37d84bc5a5ba25e33e2f1124c15faa1f0822e2 100644 (file)
@@ -253,11 +253,9 @@ apr_status_t ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
 #endif
     }
 
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
-#if APR_HAS_THREADS
+#if APR_HAS_THREADS && OPENSSL_VERSION_NUMBER < 0x10100000L
     ssl_util_thread_setup(p);
 #endif
-#endif /* #if OPENSSL_VERSION_NUMBER < 0x10100000L */
 
     /*
      * SSL external crypto device ("engine") support