Changeset 37f8282 in mod_gnutls for src/mod_gnutls.c


Ignore:
Timestamp:
Dec 7, 2011, 12:22:48 AM (8 years ago)
Author:
Dash Shendy <neuromancer@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
694fc04
Parents:
33826c5
Message:

mod_proxy support continued

Signed-off-by: Dash Shendy <neuromancer@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mod_gnutls.c

    r33826c5 r37f8282  
    2121
    2222static void gnutls_hooks(apr_pool_t * p) {
    23 
    24     ap_hook_open_logs(mgs_hook_open_logs, NULL, NULL,APR_HOOK_MIDDLE);
     23   
    2524    /* Try Run Post-Config Hook After mod_proxy */
    2625    static const char * const aszPre[] = { "mod_proxy.c", NULL };
     
    3332#endif
    3433    /* Default Port Hook */
    35     ap_hook_default_port(nss_hook_default_port,  NULL,NULL, APR_HOOK_MIDDLE);
     34    ap_hook_default_port(mgs_hook_default_port,  NULL,NULL, APR_HOOK_MIDDLE);
    3635    /* Pre-Connect Hook */
    37     ap_hook_pre_connection(mgs_hook_default_port, NULL, NULL, APR_HOOK_MIDDLE);
     36    ap_hook_pre_connection(mgs_hook_pre_connection, NULL, NULL, APR_HOOK_MIDDLE);
    3837    /* Pre-Config Hook */
    3938    ap_hook_pre_config(mgs_hook_pre_config, NULL, NULL,
     
    6867    mgs_srvconf_rec *sc = (mgs_srvconf_rec *)
    6968            ap_get_module_config(c->base_server->module_config, &gnutls_module);
    70     if(sc->enabled == GNUTLS_ENABLED_FALSE || sc->non_ssl_request) {
     69    if(sc->enabled == 0 || sc->non_ssl_request == 1) {
    7170        /* SSL/TLS Disabled or Plain HTTP Connection Detected */
    7271        return 0;
     
    9291    mgs_srvconf_rec *sc = (mgs_srvconf_rec *)
    9392            ap_get_module_config(c->base_server->module_config, &gnutls_module);
    94     return sc->proxy_enabled;
     93    sc->proxy_enabled = 1;
     94    sc->enabled = 0;
     95    return 1;
    9596}
    9697
     
    99100    NULL,
    100101    RSRC_CONF | OR_AUTHCFG,
    101     "Set Verification Requirements of the Client Certificate"),
     102    "Enable SSL Proxy Engine"),
    102103    AP_INIT_TAKE1("GnuTLSClientVerify", mgs_set_client_verify,
    103104    NULL,
Note: See TracChangeset for help on using the changeset viewer.