MCPcopy Create free account
hub / github.com/apache/httpd / on_init_order_register

Function on_init_order_register

modules/md/md_acme_order.c:288–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288static 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
303static 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)

Callers

nothing calls this directly

Calls 4

md_json_createFunction · 0.85
md_json_setaFunction · 0.85
md_json_setsFunction · 0.85
md_acme_req_body_initFunction · 0.85

Tested by

no test coverage detected