|
@@ 87-89 (lines=3) @@
|
| 84 |
|
// phpcs:ignore PHPCompatibility.Constants.NewConstants.openssl_tlsext_server_nameFound |
| 85 |
|
if (defined('OPENSSL_TLSEXT_SERVER_NAME') && OPENSSL_TLSEXT_SERVER_NAME) { |
| 86 |
|
$context_options['SNI_enabled'] = true; |
| 87 |
|
if (isset($options['verifyname']) && $options['verifyname'] === false) { |
| 88 |
|
$context_options['SNI_enabled'] = false; |
| 89 |
|
} |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
if (isset($options['verify'])) { |
|
@@ 103-106 (lines=4) @@
|
| 100 |
|
} |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
if (isset($options['verifyname']) && $options['verifyname'] === false) { |
| 104 |
|
$context_options['verify_peer_name'] = false; |
| 105 |
|
$verifyname = false; |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
stream_context_set_option($context, array('ssl' => $context_options)); |
| 109 |
|
} |