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

Function load_x509_info

modules/ssl/ssl_engine_init.c:1822–1844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1820#endif
1821
1822static BOOL load_x509_info(apr_pool_t *ptemp,
1823 STACK_OF(X509_INFO) *sk,
1824 const char *filename)
1825{
1826 BIO *in;
1827
1828 if (!(in = BIO_new(BIO_s_file()))) {
1829 return FALSE;
1830 }
1831
1832 if (BIO_read_filename(in, filename) <= 0) {
1833 BIO_free(in);
1834 return FALSE;
1835 }
1836
1837 ERR_clear_error();
1838
1839 PEM_X509_INFO_read_bio(in, sk, NULL, NULL);
1840
1841 BIO_free(in);
1842
1843 return TRUE;
1844}
1845
1846static apr_status_t ssl_init_proxy_certs(server_rec *s,
1847 apr_pool_t *p,

Callers 2

ssl_init_proxy_certsFunction · 0.85
ssl_init_ca_cert_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected