Skip to content

Commit

Permalink
doc: move checkServerIdentity option to tls.connect()
Browse files Browse the repository at this point in the history
PR-URL: #1107
Reviewed-By: Jeremiah Senkpiel <[email protected]>
  • Loading branch information
skenqbx authored and Fishrock123 committed Mar 10, 2015
1 parent 684a587 commit 80e14d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/tls.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down Expand Up @@ -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][].
Expand Down

0 comments on commit 80e14d7

Please sign in to comment.