- Timestamp:
- Nov 2, 2018, 2:24:00 PM (2 years ago)
- Branches:
- asyncio, debian/master, master, proxy-ticket
- Children:
- 7f2fd55
- Parents:
- f06c148
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_config.c
rf06c148 r4e388b0 659 659 ap_get_module_config(parms->server->module_config, &gnutls_module); 660 660 661 if (! apr_strnatcasecmp(parms->directive->directive, "GnuTLSCacheTimeout"))661 if (!strcasecmp(parms->directive->directive, "GnuTLSCacheTimeout")) 662 662 sc->cache_timeout = apr_time_from_sec(argint); 663 else if (! apr_strnatcasecmp(parms->directive->directive,664 663 else if (!strcasecmp(parms->directive->directive, 664 "GnuTLSOCSPCacheTimeout")) 665 665 sc->ocsp_cache_time = apr_time_from_sec(argint); 666 else if (! apr_strnatcasecmp(parms->directive->directive,667 666 else if (!strcasecmp(parms->directive->directive, 667 "GnuTLSOCSPFailureTimeout")) 668 668 sc->ocsp_failure_timeout = apr_time_from_sec(argint); 669 else if (! apr_strnatcasecmp(parms->directive->directive,670 669 else if (!strcasecmp(parms->directive->directive, 670 "GnuTLSOCSPFuzzTime")) 671 671 sc->ocsp_fuzz_time = apr_time_from_sec(argint); 672 else if (! apr_strnatcasecmp(parms->directive->directive,673 672 else if (!strcasecmp(parms->directive->directive, 673 "GnuTLSOCSPSocketTimeout")) 674 674 sc->ocsp_socket_timeout = apr_time_from_sec(argint); 675 675 else -
src/gnutls_hooks.c
rf06c148 r4e388b0 31 31 #include <util_mutex.h> 32 32 #include <apr_escape.h> 33 /* This provides strcmp and related functions */ 34 #define APR_WANT_STRFUNC 35 #include <apr_want.h> 33 36 34 37 #ifdef ENABLE_MSVA … … 880 883 881 884 /* Check ServerName First! */ 882 if (apr_strnatcasecmp(x->sni_name, s->server_hostname) == 0) {885 if (strcasecmp(x->sni_name, s->server_hostname) == 0) { 883 886 // We have a match, save this server configuration 884 887 x->sc = tsc; … … 887 890 } else if(s->names->nelts) { 888 891 names = s->names; 889 name = (char **) names->elts;892 name = (char **) names->elts; 890 893 for (int i = 0; i < names->nelts; ++i) 891 894 { 892 if (!name[i]) { continue; } 893 if (apr_strnatcasecmp(x->sni_name, name[i]) == 0) { 895 if (!name[i]) 896 continue; 897 if (strcasecmp(x->sni_name, name[i]) == 0) 898 { 894 899 // We have a match, save this server configuration 895 900 x->sc = tsc;
Note: See TracChangeset
for help on using the changeset viewer.