crypto: return result of openssl HMAC_Update instead of just true.#10891
crypto: return result of openssl HMAC_Update instead of just true.#10891tmeisenh wants to merge 1 commit intonodejs:masterfrom
Conversation
384ff19 to
8e22ab4
Compare
|
Updated commit (force push on my branch) just updates original commit message to reference the issue number. |
|
LGTM if CI is ok: https://ci.nodejs.org/job/node-test-pull-request/5941/ |
|
I must be missing something b/c when I review the output of test/arm I don't see a failure... |
|
@tmeisenh It's an issue with the github bot that sends the results back, if it's green on ci.nodejs.org (which it is), then CI passed. CI is green |
bnoordhuis
left a comment
There was a problem hiding this comment.
LGTM but the commit log's status line should be <= 50 characters.
|
@gibfahn Awesome, thanks for the explanation. |
If you wouldn't mind amending the commit message, you'll save whoever lands this a few keystrokes. But if you don't update it, whoever lands it can update it for you, so either way, really. |
Fixes coverity scan issue 55489.
8e22ab4 to
2dc9920
Compare
|
Updated commit message |
| HMAC_Update(&ctx_, reinterpret_cast<const unsigned char*>(data), len); | ||
| return true; | ||
| int r = HMAC_Update(&ctx_, reinterpret_cast<const unsigned char*>(data), len); | ||
| return r == 1; |
There was a problem hiding this comment.
Looks like it can only occur with engines: openssl/openssl@87d52468aa600e023, so untestable.
sam-github
left a comment
There was a problem hiding this comment.
OK, debugged, it does look the digests return 1 on success, and always do this for software digests, so LGTM
|
Running CI again only because the pushing of the amended commit message theoretically may have accidentally included a code change or something. Just being thorough. |
|
Landed in 5ea98fb, thanks. |
Fixes coverity scan issue 55489. PR-URL: #10891 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Fixes coverity scan issue 55489. PR-URL: #10891 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Fixes coverity scan issue 55489. PR-URL: nodejs#10891 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Fixes coverity scan issue 55489. PR-URL: nodejs#10891 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Fixes coverity scan issue 55489. PR-URL: #10891 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Fixes coverity scan issue 55489. PR-URL: #10891 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Fixes coverity scan issue 55489. PR-URL: #10891 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Fixes coverity scan issue 55489. PR-URL: #10891 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Addresses coverity scan issue 55489
The existing tests pass but I did not add any new tests. I did not see any existing tests around error handling of openssl functions nor any test harness to allow you to do so.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
crypto