]> granicus.if.org Git - apache/commitdiff
And a way to custom modules to guess and extract ssl variable.
authorJean-Frederic Clere <jfclere@apache.org>
Tue, 16 Oct 2018 12:53:18 +0000 (12:53 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Tue, 16 Oct 2018 12:53:18 +0000 (12:53 +0000)
See https://github.com/jfclere/JBCSP-17 for example...

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

modules/ssl/mod_ssl.c
modules/ssl/ssl_engine_kernel.c
modules/ssl/ssl_private.h

index 605d987c3df0dfa9587c7ec29b4f25ff7fb731c7..ca6618b2f8631bdfdff679bc1389c955680a3ccf 100644 (file)
@@ -776,6 +776,8 @@ static void ssl_register_hooks(apr_pool_t *p)
                               AUTHZ_PROVIDER_VERSION,
                               &ssl_authz_provider_verify_client,
                               AP_AUTH_INTERNAL_PER_CONF);
+    ap_register_provider(p, "mod_ssl" , "ssl_variables", "0",
+                         ssl_hook_GetVars());
 }
 
 module AP_MODULE_DECLARE_DATA ssl_module = {
index e91f600e8798b11b563ae95015e6f345f2c16ad9..2e543ae0f9fe0c2708ed456f80922cb485ec594b 100644 (file)
@@ -2697,3 +2697,8 @@ int ssl_callback_SRPServerParams(SSL *ssl, int *ad, void *arg)
 }
 
 #endif /* HAVE_SRP */
+
+const char * const *ssl_hook_GetVars()
+{
+   return ssl_hook_Fixup_vars;
+}
index 8524c515ba7eb80bd3ec29590dfb95c49b9cfc06..fc51f8c894bb14e94816533226f224450293773e 100644 (file)
@@ -899,6 +899,7 @@ int          ssl_hook_Fixup(request_rec *);
 int          ssl_hook_ReadReq(request_rec *);
 int          ssl_hook_Upgrade(request_rec *);
 void         ssl_hook_ConfigTest(apr_pool_t *pconf, server_rec *s);
+const char* const      *ssl_hook_GetVars(void);
 
 /** Apache authz provisders */
 extern const authz_provider ssl_authz_provider_require_ssl;