Lines Matching refs:cafile
753 static long php_openssl_load_stream_cafile(X509_STORE *cert_store, const char *cafile) /* {{{ */ in php_openssl_load_stream_cafile() argument
763 stream = php_stream_open_wrapper(cafile, "rb", 0, NULL); in php_openssl_load_stream_cafile()
766 php_error(E_WARNING, "failed loading cafile stream: `%s'", cafile); in php_openssl_load_stream_cafile()
827 php_error(E_WARNING, "no valid certs found cafile stream: `%s'", cafile); in php_openssl_load_stream_cafile()
837 char *cafile = NULL; in php_openssl_enable_peer_verification() local
841 GET_VER_OPT_STRING("cafile", cafile); in php_openssl_enable_peer_verification()
844 if (cafile == NULL) { in php_openssl_enable_peer_verification()
845 cafile = zend_ini_string("openssl.cafile", sizeof("openssl.cafile")-1, 0); in php_openssl_enable_peer_verification()
846 cafile = strlen(cafile) ? cafile : NULL; in php_openssl_enable_peer_verification()
849 STACK_OF(X509_NAME) *cert_names = SSL_load_client_CA_file(cafile); in php_openssl_enable_peer_verification()
863 if (cafile || capath) { in php_openssl_enable_peer_verification()
864 if (!SSL_CTX_load_verify_locations(ctx, cafile, capath)) { in php_openssl_enable_peer_verification()
866 if (cafile && !php_openssl_load_stream_cafile(SSL_CTX_get_cert_store(ctx), cafile)) { in php_openssl_enable_peer_verification()