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

Function md_status_get_json

modules/md/md_status.c:321–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321apr_status_t md_status_get_json(md_json_t **pjson, apr_array_header_t *mds,
322 md_reg_t *reg, md_ocsp_reg_t *ocsp, apr_pool_t *p)
323{
324 md_json_t *json, *mdj;
325 const md_t *md;
326 int i;
327
328 json = md_json_create(p);
329 md_json_sets(MOD_MD_VERSION, json, MD_KEY_VERSION, NULL);
330 for (i = 0; i < mds->nelts; ++i) {
331 md = APR_ARRAY_IDX(mds, i, const md_t *);
332 status_get_md_json(&mdj, md, reg, ocsp, 0, p);
333 md_json_addj(mdj, json, MD_KEY_MDS, NULL);
334 }
335 *pjson = json;
336 return APR_SUCCESS;
337}
338
339/**************************************************************************************************/
340/* drive job persistence */

Callers 2

md_domains_status_hookFunction · 0.85
md_status_handlerFunction · 0.85

Calls 4

md_json_createFunction · 0.85
md_json_setsFunction · 0.85
status_get_md_jsonFunction · 0.85
md_json_addjFunction · 0.85

Tested by

no test coverage detected