Repository navigation
tls: Add PSK support (v9.0.0-pre) #14978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
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 9e188bc
tls: Updated TLS-PSK Circuit test to pass all assertions.
taylorzane 51db277
tls: Updated TLS documentation to detail that pskIdentity must be enc…
taylorzane 09b9a8e
tls: Updated TLS-PSK tests to use `method() {}` syntax instead of `me…
taylorzane e954c49
tls: Updated SetPskIdentity to not throw when provided with too many …
taylorzane caadeaf
tls: Updated createSecureContext TLS-PSK logic to use `internal/error…
taylorzane 45c120b
tls: Updated formatting to conform with eslint rules.
taylorzane eef89b8
tls: Added #14978 PR to the `changes:` section. Improved wording of p…
taylorzane 6f095f8
tls: Updated tests to use the `common.skip` method when crypto is not…
taylorzane ba22b97
tls: Updated `onpskexchange` callback to use `ArrayBuffer.isView`. Cl…
taylorzane ba0727e
tls: Added `HandleScope` to PSK callbacks. Updated calls to `onpskexc…
taylorzane 361b5ed
tls: Updated a few `assert` calls to use the proper `CHECK` call.
taylorzane 49a285f
tls: Updated PSK callbacks to use `MaybeLocal` overload of `NewFromUt…
taylorzane 16921ab
tls: Updated docs and tests to reflect changes to the TLS-PSK API.
taylorzane 959887e
tls: Updated TLS-PSK API to only accept strings for `psk` and `identi…
taylorzane 65cb351
tls: Updated TLS-PSK tests to not use `common.PORT` when possible. Ad…
taylorzane 7b43283
tls: Updated TLS to check that TLS-PSK callback is a function. Update…
taylorzane bbbb658
tls: Updated `PSKClientCallback` to use a better method for casting a…
taylorzane 5136c93
tls: Fixed linter error in _tls_common.js.
taylorzane 6ed9f92
tls: Updated `PSKServerCallback` to use a better method for casting a…
taylorzane 97a71bd
tls: Renamed `pskIdentity` to `pskIdentityHint`. Updated errors to us…
taylorzane b810f97
tls: Updated PSK callbacks to use the new syntax for getting the SSL …
taylorzane 92fc64e
tls: Updated PSK tests to use new error messages, improved test asser…
taylorzane 4880511
tls: Resolved lint errors.
taylorzane 40fae68
tls: Updated PSK code to latest best practices.
taylorzane 001b3bd
tls: Removed an unused env string.
taylorzane 34e54c9
tls: Updated PSK functions to use automatic memory management.
taylorzane 31fff46
tls: Add PSK support
taylorzane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
tls: Updated TLS-PSK tests to not use
common.PORT when possible. Ad…
…ded some `mustCall` wrappers in TLS-PSK circuit test.
- Loading branch information
commit 65cb3515ee7d9f3dd6730421b4f96a960a78f567
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,10 +40,10 @@ let sentWorld = false; | |
| let gotWorld = false; | ||
| let opensslExitCode = -1; | ||
|
|
||
| server.listen(common.PORT, () => { | ||
| server.listen(0, function() { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Non-blocking suggestion: You could use an arrow function here. |
||
| const client = spawn(common.opensslCli, [ | ||
| 's_client', | ||
| '-connect', '127.0.0.1:' + common.PORT, | ||
| '-connect', '127.0.0.1:' + this.address().port, | ||
| '-cipher', CIPHERS, | ||
| '-psk', KEY, | ||
| '-psk_identity', IDENTITY | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking nit: Use an arrow function (for consistency).