IOSAD-177 Assume excessively long passphrase means PEP_WRONG_PASSPHRASE IOSAD-177
authorDirk Zimmermann <dz@pep.security>
Thu, 09 Jul 2020 13:39:37 +0200
branchIOSAD-177
changeset 1673bba8c99ccf4e
parent 1672 9f02a665cdc3
child 1674 340b400e98cc
IOSAD-177 Assume excessively long passphrase means PEP_WRONG_PASSPHRASE
pEpObjCAdapter/PEPInternalSession+PassphraseCache.m
     1.1 --- a/pEpObjCAdapter/PEPInternalSession+PassphraseCache.m	Thu Jul 09 13:37:06 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPInternalSession+PassphraseCache.m	Thu Jul 09 13:39:37 2020 +0200
     1.3 @@ -87,6 +87,9 @@
     1.4              NSString *normalizedPassphrase = [lastPassphrase normalizedPassphraseWithError:nil];
     1.5  
     1.6              if (normalizedPassphrase == nil) {
     1.7 +                // Assume excessively long passphrase means PEP_WRONG_PASSPHRASE
     1.8 +                lastPassphraseProviderStatus = PEP_WRONG_PASSPHRASE;
     1.9 +
    1.10                  dispatch_group_enter(group);
    1.11                  [passphraseProvider passphraseTooLong:passphraseCallback];
    1.12                  dispatch_group_wait(group, DISPATCH_TIME_FOREVER);