Changeset eced11a in mod_gnutls
- Timestamp:
- May 16, 2018, 1:19:05 PM (5 years ago)
- Branches:
- asyncio, debian/master, master, proxy-ticket
- Children:
- 3358887
- Parents:
- 92b5f4d
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
include/mod_gnutls.h.in
r92b5f4d reced11a 182 182 /* Mutex to prevent parallel OCSP requests */ 183 183 apr_global_mutex_t *ocsp_mutex; 184 /* Enable OCSP cache */185 unsigned char ocsp_cache_enable : 2;186 184 /* Internal OCSP cache data */ 187 185 mgs_cache_t ocsp_cache; -
src/gnutls_config.c
r92b5f4d reced11a 626 626 { 627 627 if (enable == GNUTLS_ENABLED_FALSE) 628 { 629 /* TODO: Should this return an error like "use 630 * GnuTLSOCSPStapling off if you want to disable OCSP 631 * stapling"? */ 632 sc->ocsp_cache_enable = GNUTLS_ENABLED_FALSE; 633 return NULL; 634 } 635 sc->ocsp_cache_enable = GNUTLS_ENABLED_TRUE; 628 return "\"GnuTLSOCSPCache none\" is invalid, use " 629 "\"GnuTLSOCSPStapling off\" if you want to disable " 630 "OCSP stapling."; 636 631 cache = &sc->ocsp_cache; 637 632 } … … 907 902 sc->ocsp_response_file = NULL; 908 903 sc->ocsp_mutex = NULL; 909 sc->ocsp_cache_enable = GNUTLS_ENABLED_UNSET;910 904 sc->ocsp_cache = NULL; 911 905 sc->ocsp_cache_time = MGS_TIMEOUT_UNSET; -
src/gnutls_hooks.c
r92b5f4d reced11a 635 635 if (sc->cache_timeout == MGS_TIMEOUT_UNSET) 636 636 sc->cache_timeout = sc_base->cache_timeout; 637 sc->ocsp_cache_enable = sc_base->ocsp_cache_enable;638 637 sc->ocsp_cache = sc_base->ocsp_cache; 639 638 … … 787 786 } 788 787 789 if (sc->ocsp_cache _enable == GNUTLS_ENABLED_TRUE)788 if (sc->ocsp_cache != NULL) 790 789 { 791 790 rv = mgs_cache_child_init(p, s, sc->ocsp_cache,
Note: See TracChangeset
for help on using the changeset viewer.