| 456 | } |
| 457 | |
| 458 | static 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 | |
| 472 | apr_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, |
no test coverage detected