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: remove KeyObjectData::CreateSecret overload #38067

Conversation

tniessen
Copy link
Member

@tniessen tniessen commented Apr 4, 2021

This function is unused and there is not much potential for using it in the current codebase.

This is the only invocation of CreateSecret that could use this overload instead of calling ToCopy, and it seems appropriate to explicitly call ToCopy here.

case kKeyTypeSecret: {
CHECK_EQ(args.Length(), 2);
ArrayBufferOrViewContents<char> buf(args[1]);
key->data_ = KeyObjectData::CreateSecret(buf.ToCopy());
break;

@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. needs-ci PRs that need a full CI run. labels Apr 4, 2021
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@tniessen tniessen 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 Apr 5, 2021
This function is unused and there is not much potential for using
it in the current codebase.

PR-URL: nodejs#38067
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
@Trott Trott force-pushed the src-remove-keyobjectdata-createsecret-arraybufferorviewcontents branch from 9b4d787 to 66c8f76 Compare April 6, 2021 01:17
@Trott
Copy link
Member

Trott commented Apr 6, 2021

Landed in 66c8f76

@Trott Trott merged commit 66c8f76 into nodejs:master Apr 6, 2021
@tniessen tniessen deleted the src-remove-keyobjectdata-createsecret-arraybufferorviewcontents branch October 7, 2021 16:51
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.

6 participants