MCPcopy Create free account
hub / github.com/apache/httpd / ocsp_get_meta

Function ocsp_get_meta

modules/md/md_ocsp.c:458–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458static void ocsp_get_meta(md_ocsp_cert_stat_t *pstat, md_timeperiod_t *pvalid,
459 md_ocsp_reg_t *reg, md_ocsp_status_t *ostat, apr_pool_t *p)
460{
461 apr_thread_mutex_lock(reg->mutex);
462 if (ostat->resp_der.len <= 0) {
463 /* No response known, check the store if out watchdog retrieved one
464 * in the meantime. */
465 ocsp_status_refresh(ostat, p);
466 }
467 *pvalid = ostat->resp_valid;
468 *pstat = ostat->resp_stat;
469 apr_thread_mutex_unlock(reg->mutex);
470}
471
472apr_status_t md_ocsp_get_meta(md_ocsp_cert_stat_t *pstat, md_timeperiod_t *pvalid,
473 md_ocsp_reg_t *reg, const md_cert_t *cert,

Callers 3

md_ocsp_get_metaFunction · 0.85
add_to_summaryFunction · 0.85
mk_jstatFunction · 0.85

Calls 1

ocsp_status_refreshFunction · 0.85

Tested by

no test coverage detected