Lines Matching refs:peer

156 extern zend_string* php_openssl_x509_fingerprint(X509 *peer, const char *method, bool raw);
360 static int php_openssl_x509_fingerprint_cmp(X509 *peer, const char *method, const char *expected) in php_openssl_x509_fingerprint_cmp() argument
365 fingerprint = php_openssl_x509_fingerprint(peer, method, 0); in php_openssl_x509_fingerprint_cmp()
374 static bool php_openssl_x509_fingerprint_match(X509 *peer, zval *val) in php_openssl_x509_fingerprint_match() argument
389 return method && php_openssl_x509_fingerprint_cmp(peer, method, Z_STRVAL_P(val)) == 0; in php_openssl_x509_fingerprint_match()
404 if (php_openssl_x509_fingerprint_cmp(peer, ZSTR_VAL(key), Z_STRVAL_P(current)) != 0) { in php_openssl_x509_fingerprint_match()
453 static bool php_openssl_matches_san_list(X509 *peer, const char *subject_name) /* {{{ */ in php_openssl_matches_san_list() argument
459 GENERAL_NAMES *alt_names = X509_get_ext_d2i(peer, NID_subject_alt_name, 0, 0); in php_openssl_matches_san_list()
533 static bool php_openssl_matches_common_name(X509 *peer, const char *subject_name) /* {{{ */ in php_openssl_matches_common_name() argument
540 cert_name = X509_get_subject_name(peer); in php_openssl_matches_common_name()
559 static int php_openssl_apply_peer_verification_policy(SSL *ssl, X509 *peer, php_stream *stream) /* … in php_openssl_apply_peer_verification_policy() argument
582 if ((must_verify_peer || must_verify_peer_name || must_verify_fingerprint) && peer == NULL) { in php_openssl_apply_peer_verification_policy()
614 if (!php_openssl_x509_fingerprint_match(peer, peer_fingerprint)) { in php_openssl_apply_peer_verification_policy()
638 if (php_openssl_matches_san_list(peer, peer_name)) { in php_openssl_apply_peer_verification_policy()
640 } else if (php_openssl_matches_common_name(peer, peer_name)) { in php_openssl_apply_peer_verification_policy()