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 caa7fa982affddcc. PR-URL: https://github.com/nodejs/node/pull/10545 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
eab95630f1
commit
c1b12a2896
@ -483,12 +483,8 @@ added: v0.11.4
|
||||
will be emitted on the socket before establishing a secure communication
|
||||
* `secureContext`: Optional TLS context object created with
|
||||
[`tls.createSecureContext()`][]. If a `secureContext` is _not_ provided, one
|
||||
will be created by passing the entire `options` object to
|
||||
`tls.createSecureContext()`. *Note*: In effect, all
|
||||
[`tls.createSecureContext()`][] options can be provided, but they will be
|
||||
_completely ignored_ unless the `secureContext` option is missing.
|
||||
* ...: Optional [`tls.createSecureContext()`][] options can be provided, see
|
||||
the `secureContext` option for more information.
|
||||
will be created by calling [`tls.createSecureContext()`][] with no options.
|
||||
|
||||
Construct a new `tls.TLSSocket` object from an existing TCP socket.
|
||||
|
||||
### Event: 'OCSPResponse'
|
||||
|
Loading…
x
Reference in New Issue
Block a user