| 222 | } |
| 223 | |
| 224 | static 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 | |
| 238 | static apr_status_t ocsp_status_refresh(md_ocsp_status_t *ostat, apr_pool_t *ptemp) |
| 239 | { |
no test coverage detected