summaryrefslogtreecommitdiff
path: root/nss-tool
diff options
context:
space:
mode:
authorFranziskus Kiefer <franziskuskiefer@gmail.com>2017-04-19 14:42:50 +0200
committerFranziskus Kiefer <franziskuskiefer@gmail.com>2017-04-19 14:42:50 +0200
commit09e2c2f9607d860c36c80f614ce71be227940b5b (patch)
treed25d22302d1dc45b3daf4a68216bb92cc053734f /nss-tool
parente59fcec44e241bea744c88d2d1f8cbeed0f01393 (diff)
downloadnss-hg-09e2c2f9607d860c36c80f614ce71be227940b5b.tar.gz
Bug 1355422 - fix DoCipher return values, r=mt
Differential Revision: https://nss-review.dev.mozaws.net/D287
Diffstat (limited to 'nss-tool')
-rw-r--r--nss-tool/enc/enctool.cc6
1 files changed, 3 insertions, 3 deletions
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<uint8_t>(), 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;