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

Function sk_add_alt_names

modules/md/md_crypt.c:1804–1817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1802}
1803
1804static apr_status_t sk_add_alt_names(STACK_OF(X509_EXTENSION) *exts,
1805 apr_array_header_t *domains, apr_pool_t *p)
1806{
1807 if (domains->nelts > 0) {
1808 X509_EXTENSION *x;
1809
1810 x = X509V3_EXT_conf_nid(NULL, NULL, NID_subject_alt_name, (char*)alt_names(domains, p));
1811 if (NULL == x) {
1812 return APR_EGENERAL;
1813 }
1814 sk_X509_EXTENSION_push(exts, x);
1815 }
1816 return APR_SUCCESS;
1817}
1818
1819#define MD_OID_MUST_STAPLE_NUM "1.3.6.1.5.5.7.1.24"
1820#define MD_OID_MUST_STAPLE_SNAME "tlsfeature"

Callers 1

md_cert_req_createFunction · 0.85

Calls 1

alt_namesFunction · 0.85

Tested by

no test coverage detected