httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r645244 - in /httpd/httpd/trunk: CHANGES modules/session/mod_session_crypto.c
Date Sun, 06 Apr 2008 14:23:37 GMT
Author: minfrin
Date: Sun Apr  6 07:23:35 2008
New Revision: 645244

URL: http://svn.apache.org/viewvc?rev=645244&view=rev
Log:
mod_session_crypto: Initialise SSL in the post config hook.

Modified:
    httpd/httpd/trunk/CHANGES
    httpd/httpd/trunk/modules/session/mod_session_crypto.c

Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=645244&r1=645243&r2=645244&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Sun Apr  6 07:23:35 2008
@@ -2,6 +2,9 @@
 Changes with Apache 2.3.0
 [ When backported to 2.2.x, remove entry from this file ]
 
+  *) mod_session_crypto: Initialise SSL in the post config hook.
+     [Ruediger Pluem, Graham Leggett]
+
   *) mod_session_dbd: Add a session implementation capable of storing
      session information in a SQL database via the dbd interface. Useful
      for sites where session privacy is important. [Graham Leggett]

Modified: httpd/httpd/trunk/modules/session/mod_session_crypto.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/session/mod_session_crypto.c?rev=645244&r1=645243&r2=645244&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/session/mod_session_crypto.c (original)
+++ httpd/httpd/trunk/modules/session/mod_session_crypto.c Sun Apr  6 07:23:35 2008
@@ -316,6 +316,15 @@
 
 }
 
+/**
+ * Initialise the SSL in the post_config hook.
+ */
+AP_DECLARE(int) ap_session_crypto_init(apr_pool_t *p, apr_pool_t *plog,
+                                       apr_pool_t *ptemp, server_rec *s)
+{
+    apr_ssl_init();
+    return OK;
+}
 
 
 
@@ -328,9 +337,6 @@
     new->cipher = DEFAULT_CIPHER;
     new->digest = DEFAULT_DIGEST;
 
-    /* initialise SSL */
-    apr_ssl_init();
-
     return (void *) new;
 }
 
@@ -453,6 +459,7 @@
 {
     ap_hook_session_encode(ap_session_crypto_encode, NULL, NULL, APR_HOOK_LAST);
     ap_hook_session_decode(ap_session_crypto_decode, NULL, NULL, APR_HOOK_FIRST);
+    ap_hook_post_config(ap_session_crypto_init, NULL, NULL, APR_HOOK_FIRST);
 }
 
 module AP_MODULE_DECLARE_DATA session_crypto_module =



Mime
View raw message