| 1820 | #endif |
| 1821 | |
| 1822 | static 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 | |
| 1846 | static apr_status_t ssl_init_proxy_certs(server_rec *s, |
| 1847 | apr_pool_t *p, |
no outgoing calls
no test coverage detected