Changeset c3ad933 in mod_gnutls for src/gnutls_hooks.c


Ignore:
Timestamp:
Jun 3, 2016, 2:31:56 PM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
8913410
Parents:
fd6bb19
Message:

Remove stale support code for Apache versions before 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    rfd6bb19 rc3ad933  
    3434#endif
    3535
    36 #if !USING_2_1_RECENT
    37 extern server_rec *ap_server_conf;
    38 #endif
    39 
    4036#if MOD_GNUTLS_DEBUG
    4137static apr_file_t *debug_log_fp;
     
    565561
    566562#define MAX_HOST_LEN 255
    567 
    568 #if USING_2_1_RECENT
    569563
    570564typedef struct {
     
    653647        return check_server_aliases(x, s, tsc);
    654648}
    655 #endif
    656649
    657650mgs_srvconf_rec *mgs_find_sni_server(gnutls_session_t session)
     
    662655    char sni_name[MAX_HOST_LEN];
    663656    mgs_handle_t *ctxt;
    664 #if USING_2_1_RECENT
    665657    vhost_cb_rec cbx;
    666 #else
    667     server_rec *s;
    668     mgs_srvconf_rec *tsc;
    669 #endif
    670658
    671659    if (session == NULL)
     
    694682     * for this IP/Port combo.  Trust that the core did the 'right' thing.
    695683     */
    696 #if USING_2_1_RECENT
    697684    cbx.ctxt = ctxt;
    698685    cbx.sc = NULL;
     
    703690        return cbx.sc;
    704691    }
    705 #else
    706     for (s = ap_server_conf; s; s = s->next) {
    707 
    708         tsc = (mgs_srvconf_rec *) ap_get_module_config(s->module_config,
    709                                                        &gnutls_module);
    710 
    711         if (tsc->enabled != GNUTLS_ENABLED_TRUE) { continue; }
    712 
    713         if(check_server_aliases(x, s, tsc)) {
    714             return tsc;
    715         }
    716     }
    717 #endif
    718692    return NULL;
    719693}
Note: See TracChangeset for help on using the changeset viewer.