| 256 | } |
| 257 | |
| 258 | static apr_status_t md_acme_req_done(md_acme_req_t *req, apr_status_t rv) |
| 259 | { |
| 260 | if (req->result->status != APR_SUCCESS) { |
| 261 | if (req->on_err) { |
| 262 | req->on_err(req, req->result, req->baton); |
| 263 | } |
| 264 | } |
| 265 | /* An error in rv superceeds the result->status */ |
| 266 | if (APR_SUCCESS != rv) req->result->status = rv; |
| 267 | rv = req->result->status; |
| 268 | /* transfer results into the acme's central result for longer life and later inspection */ |
| 269 | md_result_dup(req->acme->last, req->result); |
| 270 | if (req->p) { |
| 271 | apr_pool_destroy(req->p); |
| 272 | } |
| 273 | return rv; |
| 274 | } |
| 275 | |
| 276 | static apr_status_t on_response(const md_http_response_t *res, void *data) |
| 277 | { |
no test coverage detected