Skip to content

Commit

Permalink
doc: document 'ciphers' option of tls.connect
Browse files Browse the repository at this point in the history
This option has been there for a long time, but has never been
documented. It's functionally identical to the server counterpart.

PR-URL: #845
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
silverwind authored and bnoordhuis committed Feb 18, 2015
1 parent b5f25a9 commit ed240f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/tls.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ Creates a new client connection to the given `port` and `host` (old API) or
format. If this is omitted several well known "root" CAs will be used,
like VeriSign. These are used to authorize connections.

- `ciphers`: A string describing the ciphers to use or exclude, separated by
`:`. Uses the same default cipher suite as `tls.createServer`.

- `rejectUnauthorized`: If `true`, the server certificate is verified against
the list of supplied CAs. An `'error'` event is emitted if verification
fails; `err.code` contains the OpenSSL error code. Default: `true`.
Expand Down

0 comments on commit ed240f4

Please sign in to comment.