summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-11-29 12:02:04 -0800
committerRich Trott <rtrott@gmail.com>2019-12-01 12:07:14 -0800
commitd25db11312e9ef4392042380b812359fad103707 (patch)
tree9ecc10f34c7fc7deeb2084cb95f64df577d04243 /doc
parent7da6630aa4a3ba7f866be3af83ccd812102c281b (diff)
downloadandroid-node-v8-d25db11312e9ef4392042380b812359fad103707.tar.gz
android-node-v8-d25db11312e9ef4392042380b812359fad103707.tar.bz2
android-node-v8-d25db11312e9ef4392042380b812359fad103707.zip
tls: introduce ERR_TLS_INVALID_CONTEXT
It is trivially possible to cause an internal assertion error with tls.createSecurePair(). Throw a friendly error instead. Reserve internal assertions for things that we believe to be impossible. PR-URL: https://github.com/nodejs/node/pull/30718 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/errors.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md
index bdfd0df4a7..9cba4de5f2 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -1809,6 +1809,14 @@ recommended to use 2048 bits or larger for stronger security.
A TLS/SSL handshake timed out. In this case, the server must also abort the
connection.
+<a id="ERR_TLS_INVALID_CONTEXT">
+### ERR_TLS_INVALID_CONTEXT
+<!-- YAML
+added: REPLACEME
+-->
+
+The context must be a `SecureContext`.
+
<a id="ERR_TLS_INVALID_PROTOCOL_METHOD"></a>
### ERR_TLS_INVALID_PROTOCOL_METHOD