From 80e14d736ed6aaffcfbf5766a8ec36464401d91a Mon Sep 17 00:00:00 2001 From: skenqbx Date: Mon, 9 Mar 2015 14:46:22 +0100 Subject: [PATCH] doc: move checkServerIdentity option to tls.connect() PR-URL: https://github.com/iojs/io.js/pull/1107 Reviewed-By: Jeremiah Senkpiel --- doc/api/tls.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/tls.markdown b/doc/api/tls.markdown index 5b81067..38649b5 100644 --- a/doc/api/tls.markdown +++ b/doc/api/tls.markdown @@ -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 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 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. + - `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 SSL version 3. The possible values depend on your installation of OpenSSL and are defined in the constant [SSL_METHODS][]. -- 2.7.4