doc: move checkServerIdentity option to tls.connect()

PR-URL: https://github.com/iojs/io.js/pull/1107
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
This commit is contained in:
skenqbx 2015-03-09 14:46:22 +01:00 committed by Jeremiah Senkpiel
parent 684a5878b6
commit 80e14d736e

View File

@ -180,10 +180,6 @@ automatically set as a listener for the [secureConnection][] event. The
which is not authorized with the list of supplied CAs. This option only which is not authorized with the list of supplied CAs. This option only
has an effect if `requestCert` is `true`. Default: `false`. has an effect if `requestCert` is `true`. Default: `false`.
- `checkServerIdentity(servername, cert)`: Provide an override for checking
server's hostname against the certificate. Should return an error if verification
fails. Return `undefined` if passing.
- `NPNProtocols`: An array or `Buffer` of possible NPN protocols. (Protocols - `NPNProtocols`: An array or `Buffer` of possible NPN protocols. (Protocols
should be ordered by their priority). should be ordered by their priority).
@ -316,6 +312,10 @@ Creates a new client connection to the given `port` and `host` (old API) or
- `servername`: Servername for SNI (Server Name Indication) TLS extension. - `servername`: Servername for SNI (Server Name Indication) TLS extension.
- `checkServerIdentity(servername, cert)`: Provide an override for checking
server's hostname against the certificate. Should return an error if verification
fails. Return `undefined` if passing.
- `secureProtocol`: The SSL method to use, e.g. `SSLv3_method` to force - `secureProtocol`: The SSL method to use, e.g. `SSLv3_method` to force
SSL version 3. The possible values depend on your installation of SSL version 3. The possible values depend on your installation of
OpenSSL and are defined in the constant [SSL_METHODS][]. OpenSSL and are defined in the constant [SSL_METHODS][].