IOSAD-172 Static var for default timeout IOSAD-172
authorDirk Zimmermann <dz@pep.security>
Fri, 26 Jun 2020 16:54:34 +0200
branchIOSAD-172
changeset 1461c7790f7d9185
parent 1460 4cacc1f773c4
child 1462 92aa792fcbba
IOSAD-172 Static var for default timeout
pEpObjCAdapter/PEPPassphraseCache.m
     1.1 --- a/pEpObjCAdapter/PEPPassphraseCache.m	Fri Jun 26 16:54:34 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPPassphraseCache.m	Fri Jun 26 16:54:34 2020 +0200
     1.3 @@ -9,6 +9,7 @@
     1.4  #import "PEPPassphraseCache.h"
     1.5  
     1.6  static NSUInteger s_maxNumberOfPassphrases = 20;
     1.7 +static NSUInteger s_defaultTimeoutInSeconds = 10 * 60;
     1.8  
     1.9  @interface PEPPassphraseCache ()
    1.10  
    1.11 @@ -34,7 +35,7 @@
    1.12  /// Public constructor with default values.
    1.13  - (instancetype)init
    1.14  {
    1.15 -    return [self initTimeout:10 * 60];
    1.16 +    return [self initTimeout:s_defaultTimeoutInSeconds];
    1.17  }
    1.18  
    1.19  - (void)addPassphrase:(NSString *)passphrase