Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fc041a8
tls: Applied PR #6701 to master, and updated outdated code snippets, …
taylorzane Aug 22, 2017
9e188bc
tls: Updated TLS-PSK Circuit test to pass all assertions.
taylorzane Aug 22, 2017
51db277
tls: Updated TLS documentation to detail that pskIdentity must be enc…
taylorzane Aug 22, 2017
09b9a8e
tls: Updated TLS-PSK tests to use `method() {}` syntax instead of `me…
taylorzane Aug 22, 2017
e954c49
tls: Updated SetPskIdentity to not throw when provided with too many …
taylorzane Aug 22, 2017
caadeaf
tls: Updated createSecureContext TLS-PSK logic to use `internal/error…
taylorzane Aug 22, 2017
45c120b
tls: Updated formatting to conform with eslint rules.
taylorzane Aug 22, 2017
eef89b8
tls: Added #14978 PR to the `changes:` section. Improved wording of p…
taylorzane Aug 22, 2017
6f095f8
tls: Updated tests to use the `common.skip` method when crypto is not…
taylorzane Aug 22, 2017
ba22b97
tls: Updated `onpskexchange` callback to use `ArrayBuffer.isView`. Cl…
taylorzane Aug 22, 2017
ba0727e
tls: Added `HandleScope` to PSK callbacks. Updated calls to `onpskexc…
taylorzane Aug 22, 2017
361b5ed
tls: Updated a few `assert` calls to use the proper `CHECK` call.
taylorzane Aug 22, 2017
49a285f
tls: Updated PSK callbacks to use `MaybeLocal` overload of `NewFromUt…
taylorzane Aug 22, 2017
16921ab
tls: Updated docs and tests to reflect changes to the TLS-PSK API.
taylorzane Aug 23, 2017
959887e
tls: Updated TLS-PSK API to only accept strings for `psk` and `identi…
taylorzane Aug 23, 2017
65cb351
tls: Updated TLS-PSK tests to not use `common.PORT` when possible. Ad…
taylorzane Aug 25, 2017
7b43283
tls: Updated TLS to check that TLS-PSK callback is a function. Update…
taylorzane Aug 25, 2017
bbbb658
tls: Updated `PSKClientCallback` to use a better method for casting a…
taylorzane Aug 25, 2017
5136c93
tls: Fixed linter error in _tls_common.js.
taylorzane Aug 25, 2017
6ed9f92
tls: Updated `PSKServerCallback` to use a better method for casting a…
taylorzane Aug 25, 2017
97a71bd
tls: Renamed `pskIdentity` to `pskIdentityHint`. Updated errors to us…
taylorzane Apr 13, 2018
b810f97
tls: Updated PSK callbacks to use the new syntax for getting the SSL …
taylorzane Apr 13, 2018
92fc64e
tls: Updated PSK tests to use new error messages, improved test asser…
taylorzane Apr 13, 2018
4880511
tls: Resolved lint errors.
taylorzane Apr 13, 2018
40fae68
tls: Updated PSK code to latest best practices.
taylorzane Apr 25, 2018
001b3bd
tls: Removed an unused env string.
taylorzane Apr 25, 2018
34e54c9
tls: Updated PSK functions to use automatic memory management.
taylorzane May 24, 2018
31fff46
tls: Add PSK support
taylorzane Aug 22, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tls: Updated PSKClientCallback to use a better method for casting a…
… MaybeLocal to a Function.
  • Loading branch information
taylorzane committed Oct 1, 2018
commit bbbb65888dfe31cd058816d4660885c49793287c
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ unsigned int SecureContext::PskClientCallback(SSL *ssl,

MaybeLocal<Value> maybe_ret;
if (value->IsFunction()) {
Local<Function> func = Local<Function>::Cast(value);
Local<Function> func = value.As<Function>();
maybe_ret = func->Call(env->context(), sc->object(), arraysize(argv), argv);
} else {
return 0;
Expand Down