mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
crypto: use bool over int consistently
PR-URL: https://github.com/nodejs/node/pull/19238 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
committed by
Tobias Nießen
parent
0f05173f49
commit
2b3f46c989
@@ -3281,7 +3281,7 @@ bool CipherBase::Update(const char* data,
|
||||
unsigned char** out,
|
||||
int* out_len) {
|
||||
if (ctx_ == nullptr)
|
||||
return 0;
|
||||
return false;
|
||||
|
||||
// on first update:
|
||||
if (kind_ == kDecipher && IsAuthenticatedMode() && auth_tag_len_ > 0) {
|
||||
|
||||
Reference in New Issue
Block a user