@@ -1696,12 +1696,15 @@ changes:
1696
1696
* ` sessionTimeout ` {number} The number of seconds after which a TLS session
1697
1697
created by the server will no longer be resumable. See
1698
1698
[ Session Resumption] [ ] for more information. ** Default:** ` 300 ` .
1699
- * ` SNICallback(servername, cb) ` {Function} A function that will be called if
1700
- the client supports SNI TLS extension. Two arguments will be passed when
1701
- called: ` servername ` and ` cb ` . ` SNICallback ` should invoke ` cb(null, ctx) ` ,
1702
- where ` ctx ` is a ` SecureContext ` instance. (` tls.createSecureContext(...) `
1703
- can be used to get a proper ` SecureContext ` .) If ` SNICallback ` wasn't
1704
- provided the default callback with high-level API will be used (see below).
1699
+ * ` SNICallback(servername, callback) ` {Function} A function that will be
1700
+ called if the client supports SNI TLS extension. Two arguments will be
1701
+ passed when called: ` servername ` and ` callback ` . ` callback ` is an
1702
+ error-first callback that takes two optional arguments: ` error ` and ` ctx ` .
1703
+ ` ctx ` , if provided, is a ` SecureContext ` instance.
1704
+ [ ` tls.createSecureContext() ` ] [ ] can be used to get a proper ` SecureContext ` .
1705
+ If ` callback ` is called with a falsy ` ctx ` argument, the default secure
1706
+ context of the server will be used. If ` SNICallback ` wasn't provided the
1707
+ default callback with high-level API will be used (see below).
1705
1708
* ` ticketKeys ` : {Buffer} 48-bytes of cryptographically strong pseudo-random
1706
1709
data. See [ Session Resumption] [ ] for more information.
1707
1710
* ` pskCallback ` {Function}
0 commit comments