https://dev.swisssign.com/projects/swissstick/ticket/1137 forget PIN/password feature incorrectly reports an error; refs #32

master
Marc Wäckerlin 11 years ago
parent 19d6bde221
commit bb2fd695ee
  1. 1
      src/cardos.hxx

@ -1254,7 +1254,6 @@ namespace cardos {
accordingly. */ accordingly. */
void unlock(std::string pin, std::string puk, bool force=false) { void unlock(std::string pin, std::string puk, bool force=false) {
CRYPTOLOG("log"); CRYPTOLOG("log");
if (pkcs15PinRetries()!=-1) return; // all ok
if (pukRetries()==-1) throw pin_locked(); // too late, puk broken if (pukRetries()==-1) throw pin_locked(); // too late, puk broken
logonPuk(puk); logonPuk(puk);
CRYPTOLOG("PUK accepted"); CRYPTOLOG("PUK accepted");

Loading…
Cancel
Save