Lines Matching refs:cafile
735 static long load_stream_cafile(X509_STORE *cert_store, const char *cafile TSRMLS_DC) /* {{{ */ in load_stream_cafile()
745 stream = php_stream_open_wrapper(cafile, "rb", 0, NULL); in load_stream_cafile()
748 php_error(E_WARNING, "failed loading cafile stream: `%s'", cafile); in load_stream_cafile()
808 php_error(E_WARNING, "no valid certs found cafile stream: `%s'", cafile); in load_stream_cafile()
818 char *cafile = NULL; in enable_peer_verification() local
822 GET_VER_OPT_STRING("cafile", cafile); in enable_peer_verification()
825 if (cafile == NULL) { in enable_peer_verification()
826 cafile = zend_ini_string("openssl.cafile", sizeof("openssl.cafile"), 0); in enable_peer_verification()
827 cafile = strlen(cafile) ? cafile : NULL; in enable_peer_verification()
830 STACK_OF(X509_NAME) *cert_names = SSL_load_client_CA_file(cafile); in enable_peer_verification()
844 if (cafile || capath) { in enable_peer_verification()
845 if (!SSL_CTX_load_verify_locations(ctx, cafile, capath)) { in enable_peer_verification()
846 if (cafile && !load_stream_cafile(SSL_CTX_get_cert_store(ctx), cafile TSRMLS_CC)) { in enable_peer_verification()