Skip to content
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

crypto: DRY Diffie-Hellman initialization code #23657

Closed
wants to merge 1 commit into from

Conversation

bnoordhuis
Copy link
Member

No description provided.

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. labels Oct 14, 2018
Copy link
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to share these methods instead of creating duplicates, e.g. through inheritance or SetPrototypeProviderTemplate()?

@bnoordhuis
Copy link
Member Author

Rebased to fix merge conflict.

Would it make sense to share these methods instead of creating duplicates, e.g. through inheritance or SetPrototypeProviderTemplate()?

env->SetMethod(proto_provider_templ, ...) restricts calls to proto_provider_templ due to the v8::Signature. Either new methods are needed (potential source of confusion) or we inline it in DiffieHellman::Initialize(), but either way the PR then adds more code than it removes.

@jasnell
Copy link
Member

jasnell commented Oct 16, 2018

@jasnell jasnell added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Oct 16, 2018
@jasnell
Copy link
Member

jasnell commented Oct 17, 2018

@tniessen
Copy link
Member

@refack
Copy link
Contributor

refack commented Oct 18, 2018

CI in green.

@danbev
Copy link
Contributor

danbev commented Oct 18, 2018

Landed in 92d67fe.

@danbev danbev closed this Oct 18, 2018
danbev pushed a commit that referenced this pull request Oct 18, 2018
PR-URL: #23657
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
jasnell pushed a commit that referenced this pull request Oct 21, 2018
PR-URL: #23657
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants