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:
Tobias Nießen
2018-03-08 20:36:35 +01:00
committed by Tobias Nießen
parent 0f05173f49
commit 2b3f46c989

View File

@@ -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) {