Skip to content

tls: tweak clientCertEngine argument parsing - #38900

Closed
codebytere wants to merge 1 commit into
nodejs:masterfrom
codebytere:tweak-configSecureContext
Closed

tls: tweak clientCertEngine argument parsing#38900
codebytere wants to merge 1 commit into
nodejs:masterfrom
codebytere:tweak-configSecureContext

Conversation

@codebytere

@codebyterecodebytere commented Jun 2, 2021

Copy link
Copy Markdown
Member

This PR slightly tweaks the argument parsing within configSecureContext.

BoringSSL defines OPENSSL_NO_ENGINE and jasnell@35274cb changed behavior so that if a bad clientCertEngine argument is passed, ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED() will be thrown beforeERR_INVALID_ARG_TYPE.

This made Electron's smoke test of parallel/test-tls-clientcertengine-invalid-arg-type.js fail - this PR makes that test pass once more for us.

@codebytere
codebytere requested a review from jasnellJune 2, 2021 09:19
@codebyterecodebytere added the tls Issues and PRs related to the tls subsystem. label Jun 2, 2021
@github-actionsgithub-actionsBot added the needs-ci PRs that need a full CI run. label Jun 2, 2021
@codebytere
codebytereforce-pushed the tweak-configSecureContext branch from 954ea8c to 37fb0b4CompareJune 2, 2021 09:46
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

codebytere added a commit that referenced this pull request Jun 4, 2021
PR-URL: #38900
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@codebytere

Copy link
Copy Markdown
MemberAuthor

Landed in dc25378

@codebytere
codebytere deleted the tweak-configSecureContext branch June 4, 2021 09:20
@codebyterecodebytere added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. and removed needs-ci PRs that need a full CI run. labels Jun 4, 2021
targos pushed a commit that referenced this pull request Jun 11, 2021
PR-URL: #38900
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@danielleadamsdanielleadams mentioned this pull request Jun 14, 2021
codebytere added a commit to electron/electron that referenced this pull request Jun 24, 2021
codebytere added a commit to electron/electron that referenced this pull request Jun 24, 2021
@richardlau

Copy link
Copy Markdown
Member

This appears dependent on #38116 which is dont-land-on-v14.x so marking as the same.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.tlsIssues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@codebytere@nodejs-github-bot@richardlau@jasnell@Trott@lpinca@bl-ue