| 286 | } |
| 287 | |
| 288 | static apr_status_t on_init_order_register(md_acme_req_t *req, void *baton) |
| 289 | { |
| 290 | order_ctx_t *ctx = baton; |
| 291 | md_json_t *jpayload; |
| 292 | |
| 293 | jpayload = md_json_create(req->p); |
| 294 | md_json_seta(ctx->domains, identifier_to_json, NULL, jpayload, "identifiers", NULL); |
| 295 | if (ctx->profile) |
| 296 | md_json_sets(ctx->profile, jpayload, "profile", NULL); |
| 297 | if (ctx->ari_cert_id) |
| 298 | md_json_sets(ctx->ari_cert_id, jpayload, "replaces", NULL); |
| 299 | |
| 300 | return md_acme_req_body_init(req, jpayload); |
| 301 | } |
| 302 | |
| 303 | static apr_status_t on_order_upd(md_acme_t *acme, apr_pool_t *p, const apr_table_t *hdrs, |
| 304 | md_json_t *body, void *baton) |
nothing calls this directly
no test coverage detected