diff options
author | Denys Otrishko <shishugi@gmail.com> | 2018-10-29 11:38:43 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2020-01-03 18:21:40 +0300 |
commit | 7b2bf20f7e2060ac9b8a6a4eaa4a760b454f7716 (patch) | |
tree | 983eb2af9777149dd26a15619b452564b0659671 /src/env.h | |
parent | bca23b9e16c2780070d5682d567dba1cb9107153 (diff) |
tls: add PSK support
Add the `pskCallback` client/server option, which resolves an identity
or identity hint to a pre-shared key.
Add the `pskIdentityHint` server option to set the identity hint for the
ServerKeyExchange message.
Co-authored-by: Chris Osborn <chris.osborn@sitelier.com>
Co-authored-by: stephank <gh@stephank.nl>
Co-authored-by: Taylor Zane Glaeser <tzglaeser@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/23188
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/env.h b/src/env.h index 8cd56b4dd66..2ed069a4ad9 100644 --- a/src/env.h +++ b/src/env.h @@ -160,11 +160,12 @@ constexpr size_t kFsStatsBufferLength = // Symbols are per-isolate primitives but Environment proxies them // for the sake of convenience. -#define PER_ISOLATE_SYMBOL_PROPERTIES(V) \ - V(handle_onclose_symbol, "handle_onclose") \ - V(no_message_symbol, "no_message_symbol") \ - V(oninit_symbol, "oninit") \ - V(owner_symbol, "owner") \ +#define PER_ISOLATE_SYMBOL_PROPERTIES(V) \ + V(handle_onclose_symbol, "handle_onclose") \ + V(no_message_symbol, "no_message_symbol") \ + V(oninit_symbol, "oninit") \ + V(owner_symbol, "owner") \ + V(onpskexchange_symbol, "onpskexchange") \ // Strings are per-isolate primitives but Environment proxies them // for the sake of convenience. Strings should be ASCII-only. @@ -254,6 +255,7 @@ constexpr size_t kFsStatsBufferLength = V(host_string, "host") \ V(hostmaster_string, "hostmaster") \ V(http_1_1_string, "http/1.1") \ + V(identity_string, "identity") \ V(ignore_string, "ignore") \ V(import_string, "import") \ V(infoaccess_string, "infoAccess") \ @@ -325,6 +327,7 @@ constexpr size_t kFsStatsBufferLength = V(priority_string, "priority") \ V(process_string, "process") \ V(promise_string, "promise") \ + V(psk_string, "psk") \ V(pubkey_string, "pubkey") \ V(query_string, "query") \ V(raw_string, "raw") \ |