1
0
mirror of https://github.com/biergaizi/codecrypt synced 2024-06-28 18:03:36 +00:00
This commit is contained in:
Mirek Kratochvil 2017-10-23 14:17:35 +02:00
parent 4f2680134e
commit 5dceb7c07d

@ -1852,8 +1852,8 @@ int action_lock_sec (bool yes,
i = KR.pairs.begin(), e = KR.pairs.end(); i = KR.pairs.begin(), e = KR.pairs.end();
i != e; ++i) { i != e; ++i) {
if (keyspec_matches (filter, i->second.pub.name, i->first)) if (keyspec_matches (filter, i->second.pub.name, i->first))
if(!i->second.lock (withlock)) { if (!i->second.lock (withlock)) {
err("error: key locking failed"); err ("error: key locking failed");
return false; return false;
} }
} }
@ -1913,8 +1913,8 @@ int action_unlock_sec (bool yes,
i = KR.pairs.begin(), e = KR.pairs.end(); i = KR.pairs.begin(), e = KR.pairs.end();
i != e; ++i) { i != e; ++i) {
if (keyspec_matches (filter, i->second.pub.name, i->first)) if (keyspec_matches (filter, i->second.pub.name, i->first))
if(!i->second.unlock (withlock)) { if (!i->second.unlock (withlock)) {
err("error: key unlocking failed"); err ("error: key unlocking failed");
return false; return false;
} }
} }