IOSAD-172 Reset passphrases that allegedly worked IOSAD-172
authorDirk Zimmermann <dz@pep.security>
Mon, 29 Jun 2020 16:39:43 +0200
branchIOSAD-172
changeset 1524414bad4cc763
parent 1523 3c94dcd2e7d6
child 1525 c80a5689ae39
IOSAD-172 Reset passphrases that allegedly worked
pEpObjCAdapter/PEPInternalSession+PassphraseCache.m
     1.1 --- a/pEpObjCAdapter/PEPInternalSession+PassphraseCache.m	Mon Jun 29 16:39:43 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPInternalSession+PassphraseCache.m	Mon Jun 29 16:39:43 2020 +0200
     1.3 @@ -29,6 +29,9 @@
     1.4          lastStatus = block(self.session);
     1.5  
     1.6          if (lastStatus != PEP_PASSPHRASE_REQUIRED && lastStatus != PEP_WRONG_PASSPHRASE) {
     1.7 +            // The passphrase worked, so reset its timeout
     1.8 +            [[PEPPassphraseCache sharedInstance] resetTimeoutForPassphrase:passphrase];
     1.9 +
    1.10              return (PEPStatus) lastStatus;
    1.11          }
    1.12      }