From 09e2c2f9607d860c36c80f614ce71be227940b5b Mon Sep 17 00:00:00 2001 From: Franziskus Kiefer Date: Wed, 19 Apr 2017 14:42:50 +0200 Subject: Bug 1355422 - fix DoCipher return values, r=mt Differential Revision: https://nss-review.dev.mozaws.net/D287 --- nss-tool/enc/enctool.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nss-tool') diff --git a/nss-tool/enc/enctool.cc b/nss-tool/enc/enctool.cc index 0e17931a2..abac9403f 100644 --- a/nss-tool/enc/enctool.cc +++ b/nss-tool/enc/enctool.cc @@ -238,13 +238,13 @@ bool EncTool::DoCipher(std::string file_name, std::string out_file, ScopedPK11SlotInfo slot(PK11_GetInternalSlot()); if (!slot) { PrintError("Unable to find security device", PR_GetError(), __LINE__); - return SECFailure; + return false; } ScopedSECItem key, params; if (!(this->*get_params)(std::vector(), key, params)) { PrintError("Geting keys and params failed.", __LINE__); - return SECFailure; + return false; } ScopedPK11SymKey symKey( @@ -252,7 +252,7 @@ bool EncTool::DoCipher(std::string file_name, std::string out_file, CKA_DECRYPT | CKA_ENCRYPT, key.get(), nullptr)); if (!symKey) { PrintError("Failure to import key into NSS", PR_GetError(), __LINE__); - return SECFailure; + return false; } std::streambuf* buf; -- cgit v1.2.1