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

Function ostat_cleanup

modules/md/md_ocsp.c:154–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static int ostat_cleanup(void *ctx, const void *key, apr_ssize_t klen, const void *val)
155{
156 md_ocsp_reg_t *reg = ctx;
157 md_ocsp_status_t *ostat = (md_ocsp_status_t *)val;
158
159 (void)reg;
160 (void)key;
161 (void)klen;
162 ostat_req_cleanup(ostat);
163 if (ostat->certid) {
164 OCSP_CERTID_free(ostat->certid);
165 ostat->certid = NULL;
166 }
167 md_data_clear(&ostat->resp_der);
168 return 1;
169}
170
171static int ostat_should_renew(md_ocsp_status_t *ostat)
172{

Callers

nothing calls this directly

Calls 2

ostat_req_cleanupFunction · 0.85
md_data_clearFunction · 0.85

Tested by

no test coverage detected