From: Yann Ylavic Date: Wed, 1 Feb 2017 00:32:59 +0000 (+0000) Subject: mod_ssl: follow up to r1781187. X-Git-Tag: 2.5.0-alpha~716 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f82a8bdc2b07db0f737651bcb20b72a41608f213;p=thirdparty%2Fapache%2Fhttpd.git mod_ssl: follow up to r1781187. 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 --- diff --git a/modules/ssl/mod_ssl.c b/modules/ssl/mod_ssl.c index b8f561b03a2..ad2b7880a45 100644 --- a/modules/ssl/mod_ssl.c +++ b/modules/ssl/mod_ssl.c @@ -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. diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c index 26983842b73..fe37d84bc5a 100644 --- a/modules/ssl/ssl_engine_init.c +++ b/modules/ssl/ssl_engine_init.c @@ -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