-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: add added:
information for tls
#7018
Changes from 4 commits
5af646c
40d345a
28217fc
e993b2e
8d8aaca
b0c3498
8eefd49
f12bed4
aba37d5
9f4fb60
7460fff
2e167f4
e8bfe2c
7235213
a2fff23
5550764
e20d2b2
69a7e5c
a093711
e8a9bfa
456a59f
2b73b0c
9269977
6c48020
092e015
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,7 +134,6 @@ threshold is exceeded. The limits are configurable: | |
requests. Defaults to `3`. | ||
* `tls.CLIENT_RENEG_WINDOW` {number} Specifies the time renegotiation window | ||
in seconds. Defaults to `600` (10 minutes). | ||
|
||
*Note*: The default renegotiation limits should not be modified without a full | ||
understanding of the implications and risks. | ||
|
||
|
@@ -385,7 +384,9 @@ previous keys. | |
|
||
|
||
## Class: tls.TLSSocket | ||
|
||
<!--YAML | ||
added: v0.11.4 | ||
--> | ||
The `tls.TLSSocket` is a subclass of [`net.Socket`][] that performs transparent | ||
encryption of written data and all required TLS negotiation. | ||
|
||
|
@@ -396,7 +397,9 @@ Instances of `tls.TLSSocket` implement the duplex [Stream][] interface. | |
connection is open. | ||
|
||
### new tls.TLSSocket(socket[, options]) | ||
|
||
<!--YAML | ||
added: v0.11.4 | ||
--> | ||
* `socket` {net.Socket} An instance of [`net.Socket`][] | ||
* `options` {Object} | ||
* `secureContext`: An optional TLS context object from | ||
|
@@ -417,7 +420,9 @@ connection is open. | |
Construct a new `tls.TLSSocket` object from an existing TCP socket. | ||
|
||
### Event: 'OCSPResponse' | ||
|
||
<!--YAML | ||
added: v0.11.13 | ||
--> | ||
The `'OCSPResponse'` event is emitted if the `requestOCSP` option was set | ||
when the `tls.TLSSocket` was created and an OCSP response has been received. | ||
The listener callback is passed a single argument when called: | ||
|
@@ -1019,6 +1024,9 @@ openssl s_client -connect 127.0.0.1:8000 | |
``` | ||
|
||
## tls.getCiphers() | ||
<!--YAML | ||
v0.10.2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sigh.. completely overlooked that ;-) good catch. |
||
--> | ||
|
||
Returns an array with the names of the supported SSL ciphers. | ||
|
||
|
@@ -1031,7 +1039,9 @@ console.log(tls.getCiphers()); // ['AES128-SHA', 'AES256-SHA', ...] | |
## Deprecated APIs | ||
|
||
### Class: CryptoStream | ||
|
||
<!-- YAML | ||
added: v0.3.2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should, ideally, mention when it was deprecated, i.e. an additional |
||
--> | ||
Stability: 0 - Deprecated: Use [`tls.TLSSocket`][] instead. | ||
|
||
The `tls.CryptoStream` class represents a stream of encrypted data. This class | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary whitespace change