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

src: move more crypto_dh.cc code to ncrypto #54459

Closed
wants to merge 1 commit into from

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Aug 20, 2024

Moving more bits and pieces to ncrypto.

Unfortunately this is semver-major because it changes error codes in a couple of places. The change is worth it as it simplifies a few things and eliminates a special case error code that is only used in this one spot. This could be made semver-patch or semver-minor with a bit more work but it makes the API a bit more awkward. I'd rather not but if folks prefer it we can. No longer semver-major

While I'm at it, this makes a number of other cleanups along the way.

@jasnell jasnell added the semver-major PRs that contain breaking changes and should be released in the next major version. label Aug 20, 2024
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/crypto
  • @nodejs/gyp
  • @nodejs/security-wg

@nodejs-github-bot nodejs-github-bot added lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Aug 20, 2024
deps/ncrypto/ncrypto.cc Outdated Show resolved Hide resolved

This comment was marked as outdated.

deps/ncrypto/ncrypto.cc Show resolved Hide resolved
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

I fear making it semver-major will make backporting all of the ncrypto PR very hard/impossible.

An option is to mark all of them to not be backported on v22 (unless this ship has already sailed).

@jasnell
Copy link
Member Author

jasnell commented Aug 20, 2024

Looks like part of the early ncrypto stuff is already in 22... sigh. Ok, let me go back and figure out how to make this non-semver-major.

@jasnell jasnell removed the semver-major PRs that contain breaking changes and should be released in the next major version. label Aug 20, 2024
@jasnell
Copy link
Member Author

jasnell commented Aug 20, 2024

Ok, backed the error code changes out. Not super ideal but makes it semver-patch instead of major.

@nodejs-github-bot

This comment was marked as outdated.

@jasnell jasnell added the crypto Issues and PRs related to the crypto subsystem. label Aug 20, 2024
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot
Copy link
Collaborator

@mcollina
Copy link
Member

@jasnell can you update the PR description?

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Aug 21, 2024

@jasnell jasnell removed the needs-ci PRs that need a full CI run. label Aug 21, 2024
@jasnell jasnell added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Aug 23, 2024
Update deps/ncrypto/ncrypto.cc
jasnell added a commit that referenced this pull request Aug 27, 2024
Update deps/ncrypto/ncrypto.cc

PR-URL: #54459
Reviewed-By: Yagiz Nizipli <[email protected]>
@jasnell
Copy link
Member Author

jasnell commented Aug 27, 2024

Landed in 6bf7b6e

@jasnell jasnell closed this Aug 27, 2024
RafaelGSS pushed a commit that referenced this pull request Aug 30, 2024
Update deps/ncrypto/ncrypto.cc

PR-URL: #54459
Reviewed-By: Yagiz Nizipli <[email protected]>
RafaelGSS pushed a commit that referenced this pull request Aug 30, 2024
Update deps/ncrypto/ncrypto.cc

PR-URL: #54459
Reviewed-By: Yagiz Nizipli <[email protected]>
@RafaelGSS RafaelGSS mentioned this pull request Aug 30, 2024
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. crypto Issues and PRs related to the crypto subsystem. lib / src Issues and PRs related to general changes in the lib or src directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants