From: William A. Rowe Jr Date: Tue, 8 May 2007 23:18:57 +0000 (+0000) Subject: mod_ssl: initialize thread locks before initializing the hardware X-Git-Tag: 2.0.60~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa3c5d87e8d8bdd85e4f412c8b4ec105b84a899e;p=thirdparty%2Fapache%2Fhttpd.git mod_ssl: initialize thread locks before initializing the hardware acceleration library, so the latter can make use of the former. PR: 20951 Patch: http://people.apache.org/~sctemme/2.0.x-ssl_engine_init.c.patch Submitted by: Reviewed by: sctemme, rpluem, wrowe git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@536375 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 7934ae72eff..263853acdf8 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,10 @@ -*- coding: utf-8 -*- Changes with Apache 2.0.60 + *) mod_ssl: initialize thread locks before initializing the hardware + acceleration library, so the latter can make use of the former. + PR 20951. [] + *) mod_ssl: Support limited buffering of request bodies to allow per-location renegotiation to proceed. PR 12355. [Joe Orton] diff --git a/STATUS b/STATUS index 98b257f9e69..2e63d271db1 100644 --- a/STATUS +++ b/STATUS @@ -114,12 +114,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * mod_ssl: Move thread locking upcall initialization before - hardware library initialization, so hardware library can use - these upcalls when run in a threaded MPM. Fixes PR 20951. - [adunn at ncipher.com] - http://people.apache.org/~sctemme/2.0.x-ssl_engine_init.c.patch - +1: sctemme, rpluem, wrowe PATCHES PROPOSED TO BACKPORT FROM TRUNK: [ please place SVN revisions from trunk here, so it is easy to diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c index 4f40f4b340c..dff0c5e35fa 100644 --- a/modules/ssl/ssl_engine_init.c +++ b/modules/ssl/ssl_engine_init.c @@ -232,6 +232,10 @@ int ssl_init_Module(apr_pool_t *p, apr_pool_t *plog, } +#if APR_HAS_THREADS + ssl_util_thread_setup(p); +#endif + /* * SSL external crypto device ("engine") support */ @@ -241,10 +245,6 @@ int ssl_init_Module(apr_pool_t *p, apr_pool_t *plog, ssl_init_SSLLibrary(base_server); -#if APR_HAS_THREADS - ssl_util_thread_setup(p); -#endif - /* * Seed the Pseudo Random Number Generator (PRNG) * only need ptemp here; nothing inside allocated from the pool