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

Function md_cert_must_staple

modules/md/md_crypt.c:1823–1828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1821#define MD_OID_MUST_STAPLE_LNAME "TLS Feature"
1822
1823int md_cert_must_staple(const md_cert_t *cert)
1824{
1825 /* In case we do not get the NID for it, we treat this as not set. */
1826 int nid = MD_GET_NID(MUST_STAPLE);
1827 return ((NID_undef != nid)) && X509_get_ext_by_NID(cert->x509, nid, -1) >= 0;
1828}
1829
1830static apr_status_t add_must_staple(STACK_OF(X509_EXTENSION) *exts, const char *name, apr_pool_t *p)
1831{

Callers 1

state_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected