@@ -193,8 +193,8 @@ connections using TLS or SSL.
193
193
194
194
` function (exception, tlsSocket) { } `
195
195
196
- When a client connection emits an ` 'error' ` event before secure connection is
197
- established - it will be forwarded here.
196
+ When a client connection emits an ` 'error' ` event before a secure connection is
197
+ established it will be forwarded here.
198
198
199
199
` tlsSocket ` is the [ ` tls.TLSSocket ` ] [ ] that the error originated from.
200
200
@@ -370,7 +370,7 @@ Construct a new TLSSocket object from existing TCP socket.
370
370
- ` secureContext ` : An optional TLS context object from
371
371
[ ` tls.createSecureContext() ` ] [ ]
372
372
373
- - ` isServer ` : If ` true ` - TLS socket will be instantiated in server-mode.
373
+ - ` isServer ` : If ` true ` the TLS socket will be instantiated in server-mode.
374
374
Default: ` false `
375
375
376
376
- ` server ` : An optional [ ` net.Server ` ] [ ] instance
@@ -385,9 +385,9 @@ Construct a new TLSSocket object from existing TCP socket.
385
385
386
386
- ` session ` : Optional, a ` Buffer ` instance, containing TLS session
387
387
388
- - ` requestOCSP ` : Optional, if ` true ` - OCSP status request extension would
389
- be added to client hello, and ` 'OCSPResponse' ` event will be emitted on socket
390
- before establishing secure communication
388
+ - ` requestOCSP ` : Optional, if ` true ` the OCSP status request extension will
389
+ be added to the client hello, and an ` 'OCSPResponse' ` event will be emitted
390
+ on the socket before establishing a secure communication
391
391
392
392
### Event: 'OCSPResponse'
393
393
@@ -406,7 +406,7 @@ The listener will be called no matter if the server's certificate was
406
406
authorized or not. It is up to the user to test ` tlsSocket.authorized `
407
407
to see if the server certificate was signed by one of the specified CAs.
408
408
If ` tlsSocket.authorized === false ` then the error can be found in
409
- ` tlsSocket.authorizationError ` . Also if NPN was used - you can check
409
+ ` tlsSocket.authorizationError ` . Also if NPN was used you can check
410
410
` tlsSocket.npnProtocol ` for negotiated protocol.
411
411
412
412
### tlsSocket.address()
@@ -446,8 +446,8 @@ information.
446
446
447
447
Returns an object representing the peer's certificate. The returned object has
448
448
some properties corresponding to the field of the certificate. If ` detailed `
449
- argument is ` true ` - the full chain with ` issuer ` property will be returned,
450
- if ` false ` - only the top certificate without ` issuer ` property.
449
+ argument is ` true ` the full chain with ` issuer ` property will be returned,
450
+ if ` false ` only the top certificate without ` issuer ` property.
451
451
452
452
Example:
453
453
@@ -817,7 +817,7 @@ automatically set as a listener for the [`'secureConnection'`][] event. The
817
817
and `cb`. `SNICallback` should invoke `cb (null , ctx )`, where `ctx` is a
818
818
SecureContext instance.
819
819
(You can use `tls.createSecureContext(...)` to get proper
820
- SecureContext). If `SNICallback` wasn't provided - default callback with
820
+ SecureContext). If `SNICallback` wasn't provided the default callback with
821
821
high-level API will be used (see below).
822
822
823
823
- `sessionTimeout`: An integer specifying the seconds after which TLS
0 commit comments