Skip to content

Commit db33af7

Browse files
committed
Remove duplicated SSL_CTX_set_verify()
Duplicated with line 920. Our minimal OpenSSL version is v1.0.1 (See https://github.com/openssl/openssl/blob/OpenSSL_1_0_1-stable/ssl/ssl_lib.c#L2039). Removing it does not affect program behavior. Closes GH-6751.
1 parent b4e9b18 commit db33af7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/openssl/xp_ssl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,6 @@ static int php_openssl_enable_peer_verification(SSL_CTX *ctx, php_stream *stream
907907
} else {
908908
#ifdef PHP_WIN32
909909
SSL_CTX_set_cert_verify_callback(ctx, php_openssl_win_cert_verify_callback, (void *)stream);
910-
SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL);
911910
#else
912911
if (sslsock->is_client && !SSL_CTX_set_default_verify_paths(ctx)) {
913912
php_error_docref(NULL, E_WARNING,

0 commit comments

Comments
 (0)