Skip to content

Commit ac0f60d

Browse files
sam-githubandrew749
authored andcommittedJul 19, 2017
doc: new TLSSocket has no secure context options
Unlike all the other tls APIs, if any secure context configuration is required, the caller is responsible for creating the context. Corrects a doc regression introduced in caa7fa9. PR-URL: nodejs/node#10545 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent d39d150 commit ac0f60d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
 

‎doc/api/tls.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -483,12 +483,8 @@ added: v0.11.4
483483
will be emitted on the socket before establishing a secure communication
484484
* `secureContext`: Optional TLS context object created with
485485
[`tls.createSecureContext()`][]. If a `secureContext` is _not_ provided, one
486-
will be created by passing the entire `options` object to
487-
`tls.createSecureContext()`. *Note*: In effect, all
488-
[`tls.createSecureContext()`][] options can be provided, but they will be
489-
_completely ignored_ unless the `secureContext` option is missing.
490-
* ...: Optional [`tls.createSecureContext()`][] options can be provided, see
491-
the `secureContext` option for more information.
486+
will be created by calling [`tls.createSecureContext()`][] with no options.
487+
492488
Construct a new `tls.TLSSocket` object from an existing TCP socket.
493489

494490
### Event: 'OCSPResponse'

0 commit comments

Comments
 (0)