@@ -484,17 +484,15 @@ static int apply_peer_verification_policy(SSL *ssl, X509 *peer, php_stream *stre
484
484
int err ,
485
485
must_verify_peer ,
486
486
must_verify_peer_name ,
487
- must_verify_fingerprint ,
488
- has_cnmatch_ctx_opt ;
487
+ must_verify_fingerprint ;
489
488
490
489
php_openssl_netstream_data_t * sslsock = (php_openssl_netstream_data_t * )stream -> abstract ;
491
490
492
491
must_verify_peer = GET_VER_OPT ("verify_peer" )
493
492
? zend_is_true (val )
494
493
: sslsock -> is_client ;
495
494
496
- has_cnmatch_ctx_opt = GET_VER_OPT ("CN_match" );
497
- must_verify_peer_name = (has_cnmatch_ctx_opt || GET_VER_OPT ("verify_peer_name" ))
495
+ must_verify_peer_name = GET_VER_OPT ("verify_peer_name" )
498
496
? zend_is_true (val )
499
497
: sslsock -> is_client ;
500
498
@@ -549,12 +547,6 @@ static int apply_peer_verification_policy(SSL *ssl, X509 *peer, php_stream *stre
549
547
if (must_verify_peer_name ) {
550
548
GET_VER_OPT_STRING ("peer_name" , peer_name );
551
549
552
- if (has_cnmatch_ctx_opt ) {
553
- GET_VER_OPT_STRING ("CN_match" , peer_name );
554
- php_error (E_DEPRECATED ,
555
- "the 'CN_match' SSL context option is deprecated in favor of 'peer_name'"
556
- );
557
- }
558
550
/* If no peer name was specified we use the autodetected url name in client environments */
559
551
if (peer_name == NULL && sslsock -> is_client ) {
560
552
peer_name = sslsock -> url_name ;
@@ -1429,11 +1421,6 @@ static void enable_client_sni(php_stream *stream, php_openssl_netstream_data_t *
1429
1421
1430
1422
GET_VER_OPT_STRING ("peer_name" , sni_server_name );
1431
1423
1432
- if (GET_VER_OPT ("SNI_server_name" )) {
1433
- GET_VER_OPT_STRING ("SNI_server_name" , sni_server_name );
1434
- php_error (E_DEPRECATED , "SNI_server_name is deprecated in favor of peer_name" );
1435
- }
1436
-
1437
1424
if (sni_server_name ) {
1438
1425
SSL_set_tlsext_host_name (sslsock -> ssl_handle , sni_server_name );
1439
1426
}
0 commit comments