| 1217 | } |
| 1218 | |
| 1219 | apr_status_t md_json_http_get(md_json_t **pjson, apr_pool_t *pool, |
| 1220 | struct md_http_t *http, const char *url) |
| 1221 | { |
| 1222 | apr_status_t rv; |
| 1223 | resp_data resp; |
| 1224 | |
| 1225 | memset(&resp, 0, sizeof(resp)); |
| 1226 | resp.pool = pool; |
| 1227 | |
| 1228 | rv = md_http_GET_perform(http, url, NULL, json_resp_cb, &resp); |
| 1229 | |
| 1230 | if (rv == APR_SUCCESS) { |
| 1231 | *pjson = resp.json; |
| 1232 | return resp.rv; |
| 1233 | } |
| 1234 | *pjson = NULL; |
| 1235 | return rv; |
| 1236 | } |
| 1237 | |
| 1238 | |
| 1239 | apr_status_t md_json_copy_to(md_json_t *dest, const md_json_t *src, ...) |
nothing calls this directly
no test coverage detected