@@ -61,7 +61,7 @@ server-side resources, which makes it a potential vector for denial-of-service
61
61
attacks.
62
62
63
63
To mitigate this, renegotiations are limited to three times every 10 minutes. An
64
- error is emitted on the [ tls.TLSSocket] [ ] instance when the threshold is
64
+ error is emitted on the [ ` tls.TLSSocket ` ] [ ] instance when the threshold is
65
65
exceeded. The limits are configurable:
66
66
67
67
- ` tls.CLIENT_RENEG_LIMIT ` : renegotiation limit, default is 3.
@@ -159,7 +159,7 @@ is expensive.
159
159
160
160
## Class: CryptoStream
161
161
162
- Stability: 0 - Deprecated: Use [`tls.TLSSocket() `][] instead.
162
+ Stability: 0 - Deprecated: Use [`tls.TLSSocket`][] instead.
163
163
164
164
This is an encrypted stream.
165
165
@@ -196,7 +196,7 @@ connections using TLS or SSL.
196
196
When a client connection emits an ` 'error' ` event before secure connection is
197
197
established - it will be forwarded here.
198
198
199
- ` tlsSocket ` is the [ tls.TLSSocket] [ ] that the error originated from.
199
+ ` tlsSocket ` is the [ ` tls.TLSSocket ` ] [ ] that the error originated from.
200
200
201
201
### Event: 'newSession'
202
202
@@ -278,7 +278,7 @@ server.on('resumeSession', (id, cb) => {
278
278
` function (tlsSocket) {} `
279
279
280
280
This event is emitted after a new connection has been successfully
281
- handshaked. The argument is an instance of [ tls.TLSSocket] [ ] . It has all the
281
+ handshaked. The argument is an instance of [ ` tls.TLSSocket ` ] [ ] . It has all the
282
282
common stream methods and events.
283
283
284
284
` socket.authorized ` is a boolean value which indicates if the
@@ -596,7 +596,7 @@ Creates a new client connection to the given `port` and `host` (old API) or
596
596
The ` callback ` parameter will be added as a listener for the
597
597
[ ` 'secureConnect' ` ] [ ] event.
598
598
599
- ` tls.connect() ` returns a [ tls.TLSSocket] [ ] object.
599
+ ` tls.connect() ` returns a [ ` tls.TLSSocket ` ] [ ] object.
600
600
601
601
Here is an example of a client of echo server as described previously:
602
602
@@ -703,12 +703,12 @@ and the cleartext one is used as a replacement for the initial encrypted stream.
703
703
automatically reject clients with invalid certificates. Only applies to
704
704
servers with ` requestCert ` enabled.
705
705
706
- - ` options ` : An object with common SSL options. See [ tls.TLSSocket] [ ] .
706
+ - ` options ` : An object with common SSL options. See [ ` tls.TLSSocket ` ] [ ] .
707
707
708
708
` tls.createSecurePair() ` returns a SecurePair object with ` cleartext ` and
709
709
` encrypted ` stream properties.
710
710
711
- NOTE: ` cleartext ` has the same APIs as [ tls.TLSSocket] [ ]
711
+ NOTE: ` cleartext ` has the same APIs as [ ` tls.TLSSocket ` ] [ ]
712
712
713
713
## tls.createServer(options[ , secureConnectionListener] )
714
714
@@ -918,7 +918,7 @@ console.log(ciphers); // ['AES128-SHA', 'AES256-SHA', ...]
918
918
[ `crypto.getCurves()` ] : crypto.html#crypto_crypto_getcurves
919
919
[ `tls.createServer()` ] : #tls_tls_createserver_options_secureconnectionlistener
920
920
[ `tls.createSecurePair()` ] : #tls_tls_createsecurepair_context_isserver_requestcert_rejectunauthorized_options
921
- [ `tls.TLSSocket() ` ] : #tls_class_tls_tlssocket
921
+ [ `tls.TLSSocket` ] : #tls_class_tls_tlssocket
922
922
[ `net.Server` ] : net.html#net_class_net_server
923
923
[ `net.Socket` ] : net.html#net_class_net_socket
924
924
[ `net.Server.address()` ] : net.html#net_server_address
0 commit comments