tls: add ALPNCallback server option for dynamic ALPN negotiation

PR-URL: https://github.com/nodejs/node/pull/45190
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
This commit is contained in:
Tim Perry authored and GitHub committed 2023-06-28 14:30:30 +00:00
1 parent affc6aca03
commit 86ba5bea9e
8 files changed
+221 -3

No files matched your search

+14
View File
@@ -2746,6 +2746,20 @@ This error represents a failed test. Additional information about the failure
is available via the `cause` property. The `failureType` property specifies
what the test was doing when the failure occurred.
<a id="ERR_TLS_ALPN_CALLBACK_INVALID_RESULT"></a>
### `ERR_TLS_ALPN_CALLBACK_INVALID_RESULT`
This error is thrown when an `ALPNCallback` returns a value that is not in the
list of ALPN protocols offered by the client.
<a id="ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS"></a>
### `ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS`
This error is thrown when creating a `TLSServer` if the TLS options include
both `ALPNProtocols` and `ALPNCallback`. These options are mutually exclusive.
<a id="ERR_TLS_CERT_ALTNAME_FORMAT"></a>
### `ERR_TLS_CERT_ALTNAME_FORMAT`