Changeset 92b5f4d in mod_gnutls
- Timestamp:
- May 16, 2018, 2:35:28 AM (3 years ago)
- Branches:
- asyncio, debian/master, master, proxy-ticket
- Children:
- eced11a
- Parents:
- babdb29
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_ocsp.c
rbabdb29 r92b5f4d 631 631 ap_get_module_config(s->module_config, &gnutls_module); 632 632 633 if (sc-> cache == NULL)633 if (sc->ocsp_cache == NULL) 634 634 { 635 635 /* OCSP caching requires a cache. */ … … 723 723 } 724 724 725 int r = mgs_cache_store(sc->cache, s, sc->ocsp->fingerprint, resp, expiry); 725 int r = mgs_cache_store(sc->ocsp_cache, s, 726 sc->ocsp->fingerprint, resp, expiry); 726 727 /* destroy pool, and original copy of the OCSP response with it */ 727 728 apr_pool_destroy(tmp); … … 763 764 apr_time_t expiry = apr_time_now() + timeout; 764 765 765 int r = mgs_cache_store(sc->cache, s, sc->ocsp->fingerprint, dummy, expiry); 766 int r = mgs_cache_store(sc->ocsp_cache, s, 767 sc->ocsp->fingerprint, dummy, expiry); 766 768 if (r != 0) 767 769 ap_log_error(APLOG_MARK, APLOG_ERR, APR_EGENERAL, s, … … 778 780 mgs_srvconf_rec *sc = ctxt->sc; 779 781 780 if (!sc->ocsp_staple || sc-> cache == NULL)782 if (!sc->ocsp_staple || sc->ocsp_cache == NULL) 781 783 { 782 784 /* OCSP must be enabled and caching requires a cache. */ … … 784 786 } 785 787 786 *ocsp_response = mgs_cache_fetch(ctxt->sc-> cache,788 *ocsp_response = mgs_cache_fetch(ctxt->sc->ocsp_cache, 787 789 ctxt->c->base_server, 788 790 ctxt->sc->ocsp->fingerprint, … … 822 824 * moment there's no good way to integrate that with the 823 825 * Apache Mutex directive. */ 824 *ocsp_response = mgs_cache_fetch(ctxt->sc-> cache,826 *ocsp_response = mgs_cache_fetch(ctxt->sc->ocsp_cache, 825 827 ctxt->c->base_server, 826 828 ctxt->sc->ocsp->fingerprint, … … 853 855 854 856 /* retry reading from cache */ 855 *ocsp_response = mgs_cache_fetch(ctxt->sc-> cache,857 *ocsp_response = mgs_cache_fetch(ctxt->sc->ocsp_cache, 856 858 ctxt->c->base_server, 857 859 ctxt->sc->ocsp->fingerprint, … … 1060 1062 { 1061 1063 const gnutls_datum_t ocsp_response = 1062 mgs_cache_fetch(sc->cache, server, sc->ocsp->fingerprint, pool); 1064 mgs_cache_fetch(sc->ocsp_cache, server, 1065 sc->ocsp->fingerprint, pool); 1063 1066 1064 1067 if (ocsp_response.size == 0 || … … 1106 1109 } 1107 1110 1108 if (sc-> cache == NULL)1111 if (sc->ocsp_cache == NULL) 1109 1112 { 1110 1113 ap_log_error(APLOG_MARK, APLOG_STARTUP, APR_EINVAL, server,
Note: See TracChangeset
for help on using the changeset viewer.