@@ -72,7 +72,7 @@ server-side resources, which makes it a potential vector for denial-of-service
72
72
attacks.
73
73
74
74
To mitigate this, renegotiations are limited to three times every 10 minutes. An
75
- error is emitted on the [ tls.TLSSocket] [ ] instance when the threshold is
75
+ error is emitted on the [ ` tls.TLSSocket ` ] [ ] instance when the threshold is
76
76
exceeded. The limits are configurable:
77
77
78
78
- ` tls.CLIENT_RENEG_LIMIT ` : renegotiation limit, default is 3.
@@ -155,7 +155,7 @@ is expensive.
155
155
156
156
## Class: CryptoStream
157
157
158
- Stability: 0 - Deprecated: Use [`tls.TLSSocket() `][] instead.
158
+ Stability: 0 - Deprecated: Use [`tls.TLSSocket`][] instead.
159
159
160
160
This is an encrypted stream.
161
161
@@ -190,7 +190,7 @@ connections using TLS or SSL.
190
190
When a client connection emits an ` 'error' ` event before secure connection is
191
191
established - it will be forwarded here.
192
192
193
- ` tlsSocket ` is the [ tls.TLSSocket] [ ] that the error originated from.
193
+ ` tlsSocket ` is the [ ` tls.TLSSocket ` ] [ ] that the error originated from.
194
194
195
195
### Event: 'newSession'
196
196
@@ -272,7 +272,7 @@ server.on('resumeSession', (id, cb) => {
272
272
` function (tlsSocket) {} `
273
273
274
274
This event is emitted after a new connection has been successfully
275
- handshaked. The argument is an instance of [ tls.TLSSocket] [ ] . It has all the
275
+ handshaked. The argument is an instance of [ ` tls.TLSSocket ` ] [ ] . It has all the
276
276
common stream methods and events.
277
277
278
278
` socket.authorized ` is a boolean value which indicates if the
@@ -649,7 +649,7 @@ Creates a new client connection to the given `port` and `host` (old API) or
649
649
The ` callback ` parameter will be added as a listener for the
650
650
[ ` 'secureConnect' ` ] [ ] event.
651
651
652
- ` tls.connect() ` returns a [ tls.TLSSocket] [ ] object.
652
+ ` tls.connect() ` returns a [ ` tls.TLSSocket ` ] [ ] object.
653
653
654
654
Here is an example of a client of echo server as described previously:
655
655
@@ -756,12 +756,12 @@ and the cleartext one is used as a replacement for the initial encrypted stream.
756
756
automatically reject clients with invalid certificates. Only applies to
757
757
servers with ` requestCert ` enabled.
758
758
759
- - ` options ` : An object with common SSL options. See [ tls.TLSSocket] [ ] .
759
+ - ` options ` : An object with common SSL options. See [ ` tls.TLSSocket ` ] [ ] .
760
760
761
761
` tls.createSecurePair() ` returns a SecurePair object with ` cleartext ` and
762
762
` encrypted ` stream properties.
763
763
764
- NOTE: ` cleartext ` has the same APIs as [ tls.TLSSocket] [ ]
764
+ NOTE: ` cleartext ` has the same APIs as [ ` tls.TLSSocket ` ] [ ]
765
765
766
766
## tls.createServer(options[ , secureConnectionListener] )
767
767
@@ -978,7 +978,7 @@ console.log(ciphers); // ['AES128-SHA', 'AES256-SHA', ...]
978
978
[ `crypto.getCurves()` ] : crypto.html#crypto_crypto_getcurves
979
979
[ `tls.createServer()` ] : #tls_tls_createserver_options_secureconnectionlistener
980
980
[ `tls.createSecurePair()` ] : #tls_tls_createsecurepair_context_isserver_requestcert_rejectunauthorized_options
981
- [ `tls.TLSSocket() ` ] : #tls_class_tls_tlssocket
981
+ [ `tls.TLSSocket` ] : #tls_class_tls_tlssocket
982
982
[ `net.Server` ] : net.html#net_class_net_server
983
983
[ `net.Socket` ] : net.html#net_class_net_socket
984
984
[ `net.Server.address()` ] : net.html#net_server_address
0 commit comments