pEpObjCAdapter/PEPPassphraseCache.m
branchIOSAD-172
changeset 1537 748f192b92e4
parent 1535 b5796927e5b6
child 1538 7b2207f43329
     1.1 --- a/pEpObjCAdapter/PEPPassphraseCache.m	Mon Jun 29 16:39:43 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPPassphraseCache.m	Mon Jun 29 16:39:43 2020 +0200
     1.3 @@ -83,6 +83,7 @@
     1.4      PEPPassphraseCacheEntry *entry = [[PEPPassphraseCacheEntry alloc]
     1.5                                        initWithPassphrase:passphrase];
     1.6      dispatch_sync(self.queue, ^{
     1.7 +        // Note newer passphrases are always added to the _end_
     1.8          [self.mutablePassphraseEntries addObject:entry];
     1.9          if (self.mutablePassphraseEntries.count > s_maxNumberOfPassphrases) {
    1.10              [self.mutablePassphraseEntries removeObjectAtIndex:0];