summaryrefslogtreecommitdiff
path: root/doc/api/tls.md
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2016-11-04 12:37:36 -0700
committerJames M Snell <jasnell@gmail.com>2017-08-04 12:55:30 -0700
commitb1909d3a70f9e2ab3d1871848814edbe6130a00e (patch)
tree2ae2ad30bff7f968ef55e830000e5f8086d52117 /doc/api/tls.md
parent9ea363ee99165011ddcb5d9c8d16b3a22f140bc9 (diff)
downloadandroid-node-v8-b1909d3a70f9e2ab3d1871848814edbe6130a00e.tar.gz
android-node-v8-b1909d3a70f9e2ab3d1871848814edbe6130a00e.tar.bz2
android-node-v8-b1909d3a70f9e2ab3d1871848814edbe6130a00e.zip
tls: add tlsSocket.disableRenegotiation()
Allows TLS renegotiation to be disabled per `TLSSocket` instance. Per HTTP/2, TLS renegotiation is forbidden after the initial connection prefix is exchanged. PR-URL: https://github.com/nodejs/node/pull/14239 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'doc/api/tls.md')
-rw-r--r--doc/api/tls.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/api/tls.md b/doc/api/tls.md
index 80cd2e8726..2b27189e76 100644
--- a/doc/api/tls.md
+++ b/doc/api/tls.md
@@ -552,6 +552,14 @@ added: v0.11.4
Returns `true` if the peer certificate was signed by one of the CAs specified
when creating the `tls.TLSSocket` instance, otherwise `false`.
+### tlsSocket.disableRenegotiation()
+<!-- YAML
+added: REPLACEME
+-->
+
+Disables TLS renegotiation for this `TLSSocket` instance. Once called, attempts
+to renegotiate will trigger an `'error'` event on the `TLSSocket`.
+
### tlsSocket.encrypted
<!-- YAML
added: v0.11.4