| 511 | } |
| 512 | |
| 513 | apr_status_t md_acme_get_json(struct md_json_t **pjson, md_acme_t *acme, |
| 514 | const char *url, int get_as_post, apr_pool_t *p) |
| 515 | { |
| 516 | apr_status_t rv; |
| 517 | json_ctx ctx; |
| 518 | |
| 519 | ctx.pool = p; |
| 520 | ctx.json = NULL; |
| 521 | |
| 522 | rv = md_acme_GET(acme, url, NULL, on_got_json, NULL, NULL, get_as_post, &ctx); |
| 523 | *pjson = (APR_SUCCESS == rv)? ctx.json : NULL; |
| 524 | return rv; |
| 525 | } |
| 526 | |
| 527 | /**************************************************************************************************/ |
| 528 | /* Generic ACME operations */ |
no test coverage detected