Lines Matching refs:peer_cert
1741 …re_peer_certs(php_stream *stream, php_openssl_netstream_data_t *sslsock, X509 *peer_cert) /* {{{ */ in capture_peer_certs() argument
1750 ZVAL_RES(&zcert, zend_register_resource(peer_cert, php_openssl_get_x509_list_id())); in capture_peer_certs()
1795 X509 *peer_cert; in php_openssl_enable_crypto() local
1884 peer_cert = SSL_get_peer_certificate(sslsock->ssl_handle); in php_openssl_enable_crypto()
1885 if (peer_cert && PHP_STREAM_CONTEXT(stream)) { in php_openssl_enable_crypto()
1886 cert_captured = capture_peer_certs(stream, sslsock, peer_cert); in php_openssl_enable_crypto()
1889 if (FAILURE == apply_peer_verification_policy(sslsock->ssl_handle, peer_cert, stream)) { in php_openssl_enable_crypto()
1918 peer_cert = SSL_get_peer_certificate(sslsock->ssl_handle); in php_openssl_enable_crypto()
1919 if (peer_cert && PHP_STREAM_CONTEXT(stream)) { in php_openssl_enable_crypto()
1920 cert_captured = capture_peer_certs(stream, sslsock, peer_cert); in php_openssl_enable_crypto()
1924 if (n && peer_cert && cert_captured == 0) { in php_openssl_enable_crypto()
1925 X509_free(peer_cert); in php_openssl_enable_crypto()