Commit b0cd0298 authored by Jean-Frederic Clere's avatar Jean-Frederic Clere
Browse files

And a way to custom modules to guess and extract ssl variable.

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
parent 524608b6
Loading
Loading
Loading
Loading
+2 −0
Changes for modules/ssl/mod_ssl.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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 = {
+5 −0
Changes for modules/ssl/ssl_engine_kernel.c: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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;
}
+1 −0
Changes for modules/ssl/ssl_private.h: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -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;