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

Function md_ocsp_init_id

modules/md/md_ocsp.c:131–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131apr_status_t md_ocsp_init_id(md_data_t *id, apr_pool_t *p, const md_cert_t *cert)
132{
133 unsigned char iddata[SHA_DIGEST_LENGTH];
134 X509 *x = md_cert_get_X509(cert);
135 unsigned int ulen = 0;
136
137 md_data_null(id);
138 if (X509_digest(x, EVP_sha1(), iddata, &ulen) != 1) {
139 return APR_EGENERAL;
140 }
141 md_data_assign_pcopy(id, (const char*)iddata, ulen, p);
142 return APR_SUCCESS;
143}
144
145static void ostat_req_cleanup(md_ocsp_status_t *ostat)
146{

Callers 2

md_ocsp_primeFunction · 0.85
md_ocsp_get_metaFunction · 0.85

Calls 3

md_cert_get_X509Function · 0.85
md_data_nullFunction · 0.85
md_data_assign_pcopyFunction · 0.85

Tested by

no test coverage detected