Lines Matching refs:peer

78 extern int php_openssl_x509_fingerprint(X509 *peer, const char *method, zend_bool raw, char **out, …
271 static int php_x509_fingerprint_cmp(X509 *peer, const char *method, const char *expected TSRMLS_DC) in php_x509_fingerprint_cmp() argument
277 …if (php_openssl_x509_fingerprint(peer, method, 0, &fingerprint, &fingerprint_len TSRMLS_CC) == SUC… in php_x509_fingerprint_cmp()
285 static zend_bool php_x509_fingerprint_match(X509 *peer, zval *val TSRMLS_DC) in php_x509_fingerprint_match() argument
300 return method && php_x509_fingerprint_cmp(peer, method, Z_STRVAL_P(val) TSRMLS_CC) == 0; in php_x509_fingerprint_match()
324 if (php_x509_fingerprint_cmp(peer, key, Z_STRVAL_PP(current) TSRMLS_CC) != 0) { in php_x509_fingerprint_match()
373 static zend_bool matches_san_list(X509 *peer, const char *subject_name) /* {{{ */ in matches_san_list() argument
379 GENERAL_NAMES *alt_names = X509_get_ext_d2i(peer, NID_subject_alt_name, 0, 0); in matches_san_list()
427 static zend_bool matches_common_name(X509 *peer, const char *subject_name TSRMLS_DC) /* {{{ */ in matches_common_name() argument
434 cert_name = X509_get_subject_name(peer); in matches_common_name()
451 static int apply_peer_verification_policy(SSL *ssl, X509 *peer, php_stream *stream TSRMLS_DC) /* {{… in apply_peer_verification_policy() argument
474 if ((must_verify_peer || must_verify_peer_name || must_verify_fingerprint) && peer == NULL) { in apply_peer_verification_policy()
505 if (!php_x509_fingerprint_match(peer, *val TSRMLS_CC)) { in apply_peer_verification_policy()
535 if (matches_san_list(peer, peer_name)) { in apply_peer_verification_policy()
537 } else if (matches_common_name(peer, peer_name TSRMLS_CC)) { in apply_peer_verification_policy()