| 974 | } |
| 975 | |
| 976 | void md_ocsp_get_summary(md_json_t **pjson, md_ocsp_reg_t *reg, apr_pool_t *p) |
| 977 | { |
| 978 | md_json_t *json; |
| 979 | ocsp_summary_ctx_t ctx; |
| 980 | |
| 981 | memset(&ctx, 0, sizeof(ctx)); |
| 982 | ctx.p = p; |
| 983 | ctx.reg = reg; |
| 984 | apr_hash_do(add_to_summary, &ctx, reg->ostat_by_id); |
| 985 | |
| 986 | json = md_json_create(p); |
| 987 | md_json_setl(ctx.good+ctx.revoked+ctx.unknown, json, MD_KEY_TOTAL, NULL); |
| 988 | md_json_setl(ctx.good, json, MD_KEY_GOOD, NULL); |
| 989 | md_json_setl(ctx.revoked, json, MD_KEY_REVOKED, NULL); |
| 990 | md_json_setl(ctx.unknown, json, MD_KEY_UNKNOWN, NULL); |
| 991 | *pjson = json; |
| 992 | } |
| 993 | |
| 994 | static apr_status_t job_loadj(md_json_t **pjson, const char *name, |
| 995 | md_ocsp_reg_t *reg, apr_pool_t *p) |
no test coverage detected