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

Function on_add_cert

modules/md/md_acme_drive.c:234–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234static 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
251static apr_status_t get_cert(void *baton, int attempt)
252{

Callers

nothing calls this directly

Calls 3

add_http_certsFunction · 0.85
md_log_perrorFunction · 0.85
get_up_linkFunction · 0.85

Tested by

no test coverage detected