@@ 87-89 (lines=3) @@ | ||
84 | // SNI, if enabled (OpenSSL >=0.9.8j) |
|
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'])) { |
|
@@ 101-104 (lines=4) @@ | ||
98 | } |
|
99 | } |
|
100 | ||
101 | if (isset($options['verifyname']) && $options['verifyname'] === false) { |
|
102 | $context_options['verify_peer_name'] = false; |
|
103 | $verifyname = false; |
|
104 | } |
|
105 | ||
106 | stream_context_set_option($context, array('ssl' => $context_options)); |
|
107 | } |