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: use more explicit return type in Sign::SignFinal() #23779

Closed
wants to merge 2 commits into from

Conversation

addaleax
Copy link
Member

Using the non-indexed variant of std::get<> broke Travis CI.
Also, this allows us to be a bit more concise when returning
from SignFinal() due to some error condition.

Refs: #23427

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Using the non-indexed variant of `std::get<>` broke Travis CI.
Also, this allows us to be a bit more concise when returning
from `SignFinal()` due to some error condition.

Refs: nodejs#23427
@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 20, 2018
@addaleax
Copy link
Member Author

addaleax commented Oct 20, 2018

FYI @refack @tniessen

CI: https://ci.nodejs.org/job/node-test-pull-request/18003/ (:heavy_check_mark:)

Feel free to 👍 this comment to approve fast-tracking.

(There’s also #23778, but I think it might be best to talk about those changes independently)

@addaleax addaleax added the fast-track PRs that do not need to wait for 48 hours to land. label Oct 20, 2018
Copy link
Contributor

@refack refack left a comment

Choose a reason for hiding this comment

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

Looks like a good idea, but I feel like I need to give it another look tomorrow.

src/node_crypto.h Outdated Show resolved Hide resolved
src/node_crypto.cc Outdated Show resolved Hide resolved
@addaleax
Copy link
Member Author

@refack Done!

@refack
Copy link
Contributor

refack commented Oct 20, 2018

IMHO this is not a clear cut case for fast-tracking, but it does resolve a regression, and the change itself has small footprint. So I'm 👍.
@nodejs/testing for your consideration We need another upvote for fast-tracking (solving the Travis issue).

@refack
Copy link
Contributor

refack commented Oct 20, 2018

This exposed a bug in our release cluster, the arm64 cross compiler (centos7-arm64) is using gcc4.8.

@addaleax
Copy link
Member Author

Landed in 20282b1

@addaleax addaleax closed this Oct 21, 2018
@addaleax addaleax deleted the crypto-no-pair branch October 21, 2018 01:15
addaleax added a commit that referenced this pull request Oct 21, 2018
Using the non-indexed variant of `std::get<>` broke Travis CI.
Also, this allows us to be a bit more concise when returning
from `SignFinal()` due to some error condition.

Refs: #23427

PR-URL: #23779
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
jasnell pushed a commit that referenced this pull request Oct 21, 2018
Using the non-indexed variant of `std::get<>` broke Travis CI.
Also, this allows us to be a bit more concise when returning
from `SignFinal()` due to some error condition.

Refs: #23427

PR-URL: #23779
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@MylesBorins
Copy link
Contributor

Should this be backported to v10.x-staging? If yes please follow the guide and raise a backport PR, if not let me know or add the dont-land-on label.

BethGriggs pushed a commit that referenced this pull request Oct 18, 2019
Using the non-indexed variant of `std::get<>` broke Travis CI.
Also, this allows us to be a bit more concise when returning
from `SignFinal()` due to some error condition.

Refs: #23427

PR-URL: #23779
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@BethGriggs BethGriggs mentioned this pull request Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. fast-track PRs that do not need to wait for 48 hours to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants