| 319 | } |
| 320 | |
| 321 | apr_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 */ |
no test coverage detected