IOSAD-177 fixes: passphrases from provider not cached IOSAD-177
authorbuff <andreas@pep-project.org>
Thu, 09 Jul 2020 19:02:58 +0200
branchIOSAD-177
changeset 1681fa96643a871a
parent 1680 914bafa5e6d3
child 1682 e8e723e35b74
IOSAD-177 fixes: passphrases from provider not cached
pEpObjCAdapter/PEPInternalSession+PassphraseCache.m
     1.1 --- a/pEpObjCAdapter/PEPInternalSession+PassphraseCache.m	Thu Jul 09 17:28:50 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPInternalSession+PassphraseCache.m	Thu Jul 09 19:02:58 2020 +0200
     1.3 @@ -86,6 +86,9 @@
     1.4  
     1.5              NSString *normalizedPassphrase = [lastPassphrase normalizedPassphraseWithError:nil];
     1.6  
     1.7 +            //Add the new passphrase to our cache to not having to bother the client again.
     1.8 +            [self.passphraseCache addPassphrase:normalizedPassphrase];
     1.9 +
    1.10              if (normalizedPassphrase == nil) {
    1.11                  // Assume excessively long passphrase means PEP_WRONG_PASSPHRASE
    1.12                  lastPassphraseProviderStatus = PEP_WRONG_PASSPHRASE;