php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch 200perc-lazy-patch for OpenSSL related Bug #76705

Patch version 2018-08-04 15:24 UTC

Return to Bug #76705 | Download this patch
Patch Revisions:

Developer:

diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c
index b26fc26544..0f566423e9 100644
--- a/ext/openssl/xp_ssl.c
+++ b/ext/openssl/xp_ssl.c
@@ -532,6 +532,7 @@ static int php_openssl_apply_peer_verification_policy(SSL *ssl, X509 *peer, php_
        }
 
        /* If a peer_fingerprint match is required this trumps peer and peer_name verification */
+       GET_VER_OPT("peer_fingerprint");
        if (must_verify_fingerprint) {
                if (Z_TYPE_P(val) == IS_STRING || Z_TYPE_P(val) == IS_ARRAY) {
                        if (!php_openssl_x509_fingerprint_match(peer, val)) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 17:01:32 2024 UTC