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

Function md_ocsp_get_summary

modules/md/md_ocsp.c:976–992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

974}
975
976void 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
994static apr_status_t job_loadj(md_json_t **pjson, const char *name,
995 md_ocsp_reg_t *reg, apr_pool_t *p)

Callers 1

md_ocsp_status_hookFunction · 0.85

Calls 2

md_json_createFunction · 0.85
md_json_setlFunction · 0.85

Tested by

no test coverage detected