Changeset 08ba205 in mod_gnutls for src/gnutls_ocsp.c
- Timestamp:
- Jan 11, 2020, 12:59:30 PM (3 years ago)
- Branches:
- asyncio, main, master, proxy-ticket
- Children:
- 1c3853a
- Parents:
- 4e60dd8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_ocsp.c
r4e60dd8 r08ba205 1040 1040 * mgs_get_ocsp_response. */ 1041 1041 apr_global_mutex_lock(sc->ocsp_mutex); 1042 apr_status_t rv = mgs_cache_ocsp_response(server, sc->ocsp , &expiry);1042 apr_status_t rv = mgs_cache_ocsp_response(server, sc->ocsp[0], &expiry); 1043 1043 1044 1044 apr_interval_time_t next_interval; … … 1114 1114 1115 1115 apr_status_t rv = mgs_cache_fetch(sc->ocsp_cache, server, 1116 sc->ocsp ->fingerprint,1116 sc->ocsp[0]->fingerprint, 1117 1117 &ocsp_response, 1118 1118 pool); … … 1123 1123 "Caching OCSP request failure for %s:%d.", 1124 1124 server->server_hostname, server->addrs->host_port); 1125 mgs_cache_ocsp_failure(server, sc->ocsp ,1125 mgs_cache_ocsp_failure(server, sc->ocsp[0], 1126 1126 sc->ocsp_failure_timeout * 2); 1127 1127 } … … 1148 1148 return "No issuer (CA) certificate available, cannot enable " 1149 1149 "stapling. Please add it to the GnuTLSCertificateFile."; 1150 1151 /* array for ocsp data, currently size 1 */ 1152 sc->ocsp = apr_palloc(pconf, sizeof(mgs_ocsp_data_t)); 1150 1153 1151 1154 mgs_ocsp_data_t ocsp = apr_palloc(pconf, sizeof(struct mgs_ocsp_data)); … … 1182 1185 apr_pool_cleanup_null); 1183 1186 1184 sc->ocsp = ocsp;1187 sc->ocsp[0] = ocsp; 1185 1188 return NULL; 1186 1189 }
Note: See TracChangeset
for help on using the changeset viewer.