| 232 | } |
| 233 | |
| 234 | static apr_status_t on_add_cert(md_acme_t *acme, const md_http_response_t *res, void *baton) |
| 235 | { |
| 236 | md_proto_driver_t *d = baton; |
| 237 | md_acme_driver_t *ad = d->baton; |
| 238 | apr_status_t rv = APR_SUCCESS; |
| 239 | int count; |
| 240 | |
| 241 | (void)acme; |
| 242 | count = ad->cred->chain->nelts; |
| 243 | if (APR_SUCCESS == (rv = add_http_certs(ad->cred->chain, d->p, res))) { |
| 244 | md_log_perror(MD_LOG_MARK, MD_LOG_DEBUG, rv, d->p, "%d certs parsed", |
| 245 | ad->cred->chain->nelts - count); |
| 246 | get_up_link(d, res->headers); |
| 247 | } |
| 248 | return rv; |
| 249 | } |
| 250 | |
| 251 | static apr_status_t get_cert(void *baton, int attempt) |
| 252 | { |
nothing calls this directly
no test coverage detected