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

Function md_check_cert_and_pkey

modules/md/md_crypt.c:2202–2217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2200}
2201
2202apr_status_t md_check_cert_and_pkey(struct apr_array_header_t *certs, md_pkey_t *pkey)
2203{
2204 const md_cert_t *cert;
2205
2206 if (certs->nelts == 0) {
2207 return APR_ENOENT;
2208 }
2209
2210 cert = APR_ARRAY_IDX(certs, 0, const md_cert_t*);
2211
2212 if (1 != X509_check_private_key(cert->x509, pkey->pkey)) {
2213 return APR_EGENERAL;
2214 }
2215
2216 return APR_SUCCESS;
2217}
2218
2219apr_status_t md_cert_get_ari_cert_id(const char **pari_cert_id,
2220 const md_cert_t *cert, apr_pool_t *p)

Callers 2

acme_renewFunction · 0.85
acme_preloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected