| 99 | } error_ctx_t; |
| 100 | |
| 101 | static int copy_challenge_error(void *baton, size_t index, md_json_t *json) |
| 102 | { |
| 103 | error_ctx_t *ctx = baton; |
| 104 | |
| 105 | (void)index; |
| 106 | if (md_json_has_key(json, MD_KEY_ERROR, NULL)) { |
| 107 | ctx->authz->error_type = md_json_dups(ctx->p, json, MD_KEY_ERROR, MD_KEY_TYPE, NULL); |
| 108 | ctx->authz->error_detail = md_json_dups(ctx->p, json, MD_KEY_ERROR, MD_KEY_DETAIL, NULL); |
| 109 | ctx->authz->error_subproblems = md_json_dupj(ctx->p, json, MD_KEY_ERROR, MD_KEY_SUBPROBLEMS, NULL); |
| 110 | } |
| 111 | return 1; |
| 112 | } |
| 113 | |
| 114 | apr_status_t md_acme_authz_update(md_acme_authz_t *authz, md_acme_t *acme, apr_pool_t *p) |
| 115 | { |
nothing calls this directly
no test coverage detected