diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-01-11 03:33:49 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2018-01-17 02:20:36 +0800 |
commit | 1c29da8236f0017fa3a09eaeba3c48309d08375b (patch) | |
tree | 5d744a2e22776344b1b140ec2ae6a62e8b12ecba /doc | |
parent | 9ffebeab48e2e0b61dc0817430f089b6a1482ea7 (diff) | |
download | node-new-1c29da8236f0017fa3a09eaeba3c48309d08375b.tar.gz |
tls: migrate C++ errors to internal/errors.js
* Throw ERR_TLS_SNI_FROM_SERVER when setting server names on a
server-side socket instead of returning silently
* Assert on wrap_->started and wrap_->ssl instead of throwing
errors since these errors indicate that the user either uses
private APIs, or monkey-patches internals, or hits a bug.
PR-URL: https://github.com/nodejs/node/pull/18125
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/errors.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md index 3f2737f4df..32281dfe2d 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1530,6 +1530,12 @@ a hostname in the first parameter. An excessive amount of TLS renegotiations is detected, which is a potential vector for denial-of-service attacks. +<a id="ERR_TLS_SNI_FROM_SERVER"></a> +### ERR_TLS_SNI_FROM_SERVER + +An attempt was made to issue Server Name Indication from a TLS server-side +socket, which is only valid from a client. + <a id="ERR_TLS_RENEGOTIATION_DISABLED"></a> ### ERR_TLS_RENEGOTIATION_DISABLED |