peer 1814 ext/openssl/openssl.c zend_string* php_openssl_x509_fingerprint(X509 *peer, const char *method, zend_bool raw) peer 1824 ext/openssl/openssl.c } else if (!X509_digest(peer, mdtype, md, &n)) { peer 108 ext/openssl/xp_ssl.c extern zend_string* php_openssl_x509_fingerprint(X509 *peer, const char *method, zend_bool raw); peer 309 ext/openssl/xp_ssl.c static int php_x509_fingerprint_cmp(X509 *peer, const char *method, const char *expected) peer 314 ext/openssl/xp_ssl.c fingerprint = php_openssl_x509_fingerprint(peer, method, 0); peer 323 ext/openssl/xp_ssl.c static zend_bool php_x509_fingerprint_match(X509 *peer, zval *val) peer 338 ext/openssl/xp_ssl.c return method && php_x509_fingerprint_cmp(peer, method, Z_STRVAL_P(val)) == 0; peer 353 ext/openssl/xp_ssl.c if (php_x509_fingerprint_cmp(peer, ZSTR_VAL(key), Z_STRVAL_P(current)) != 0) { peer 402 ext/openssl/xp_ssl.c static zend_bool matches_san_list(X509 *peer, const char *subject_name) /* {{{ */ peer 408 ext/openssl/xp_ssl.c GENERAL_NAMES *alt_names = X509_get_ext_d2i(peer, NID_subject_alt_name, 0, 0); peer 456 ext/openssl/xp_ssl.c static zend_bool matches_common_name(X509 *peer, const char *subject_name) /* {{{ */ peer 463 ext/openssl/xp_ssl.c cert_name = X509_get_subject_name(peer); peer 480 ext/openssl/xp_ssl.c static int apply_peer_verification_policy(SSL *ssl, X509 *peer, php_stream *stream) /* {{{ */ peer 501 ext/openssl/xp_ssl.c if ((must_verify_peer || must_verify_peer_name || must_verify_fingerprint) && peer == NULL) { peer 532 ext/openssl/xp_ssl.c if (!php_x509_fingerprint_match(peer, val)) { peer 556 ext/openssl/xp_ssl.c if (matches_san_list(peer, peer_name)) { peer 558 ext/openssl/xp_ssl.c } else if (matches_common_name(peer, peer_name)) {