You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2014/04/23 14:38:03 UTC

svn commit: r1589389 - /httpd/httpd/trunk/modules/ssl/mod_ssl_ct.c

Author: trawick
Date: Wed Apr 23 12:38:03 2014
New Revision: 1589389

URL: http://svn.apache.org/r1589389
Log:
ensure that the post-config hook runs after that of mod_ssl

(mod_ssl_ct looks for stuff that should have been found
while mod_ssl ran)

Modified:
    httpd/httpd/trunk/modules/ssl/mod_ssl_ct.c

Modified: httpd/httpd/trunk/modules/ssl/mod_ssl_ct.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/mod_ssl_ct.c?rev=1589389&r1=1589388&r2=1589389&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ssl/mod_ssl_ct.c (original)
+++ httpd/httpd/trunk/modules/ssl/mod_ssl_ct.c Wed Apr 23 12:38:03 2014
@@ -2609,9 +2609,12 @@ static int ssl_ct_detach_backend(request
 
 static void ct_register_hooks(apr_pool_t *p)
 {
+    static const char * const run_after_mod_ssl[] = {"mod_ssl.c", NULL};
+
     ap_hook_pre_config(ssl_ct_pre_config, NULL, NULL, APR_HOOK_MIDDLE);
     ap_hook_check_config(ssl_ct_check_config, NULL, NULL, APR_HOOK_MIDDLE);
-    ap_hook_post_config(ssl_ct_post_config, NULL, NULL, APR_HOOK_MIDDLE);
+    ap_hook_post_config(ssl_ct_post_config, run_after_mod_ssl, NULL,
+                        APR_HOOK_MIDDLE);
     ap_hook_post_read_request(ssl_ct_post_read_request, NULL, NULL, APR_HOOK_MIDDLE);
     ap_hook_child_init(ssl_ct_child_init, NULL, NULL, APR_HOOK_MIDDLE);
     APR_OPTIONAL_HOOK(proxy, detach_backend, ssl_ct_detach_backend, NULL, NULL,