|
@@ 95-97 (lines=3) @@
|
| 92 |
|
// SNI, if enabled (OpenSSL >=0.9.8j) |
| 93 |
|
if (defined('OPENSSL_TLSEXT_SERVER_NAME') && OPENSSL_TLSEXT_SERVER_NAME) { |
| 94 |
|
$context_options['SNI_enabled'] = true; |
| 95 |
|
if (isset($options['verifyname']) && $options['verifyname'] === false) { |
| 96 |
|
$context_options['SNI_enabled'] = false; |
| 97 |
|
} |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
if (isset($options['verify'])) { |
|
@@ 109-112 (lines=4) @@
|
| 106 |
|
} |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
if (isset($options['verifyname']) && $options['verifyname'] === false) { |
| 110 |
|
$context_options['verify_peer_name'] = false; |
| 111 |
|
$verifyname = false; |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
stream_context_set_option($context, array('ssl' => $context_options)); |
| 115 |
|
} |