| 186 | } |
| 187 | |
| 188 | static const char *get_cert_name(const md_t *md, int i, int from_staging, apr_pool_t *p) |
| 189 | { |
| 190 | if (!from_staging && md->cert_files && md->cert_files->nelts) { |
| 191 | /* static files configured, not from staging, used index names */ |
| 192 | return apr_psprintf(p, "%d", i); |
| 193 | } |
| 194 | return md_pkey_spec_name(md_pkeys_spec_get(md->pks, i)); |
| 195 | } |
| 196 | |
| 197 | static apr_status_t status_get_certs_json(md_json_t **pjson, apr_array_header_t *certs, |
| 198 | int from_staging, |
no test coverage detected