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