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

Function ostat_to_json

modules/md/md_ocsp.c:224–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224static void ostat_to_json(md_json_t *json, md_ocsp_cert_stat_t stat,
225 const md_data_t *resp_der, const md_timeperiod_t *resp_valid,
226 apr_pool_t *p)
227{
228 const char *s = NULL;
229
230 if (resp_der->len > 0) {
231 md_json_sets(md_util_base64url_encode(resp_der, p), json, MD_KEY_RESPONSE, NULL);
232 s = md_ocsp_cert_stat_name(stat);
233 if (s) md_json_sets(s, json, MD_KEY_STATUS, NULL);
234 md_json_set_timeperiod(resp_valid, json, MD_KEY_VALID, NULL);
235 }
236}
237
238static apr_status_t ocsp_status_refresh(md_ocsp_status_t *ostat, apr_pool_t *ptemp)
239{

Callers 1

ocsp_status_saveFunction · 0.85

Calls 4

md_json_setsFunction · 0.85
md_util_base64url_encodeFunction · 0.85
md_ocsp_cert_stat_nameFunction · 0.85
md_json_set_timeperiodFunction · 0.85

Tested by

no test coverage detected