pEpObjCAdapter/PEPPassphraseCache.m
branchIOSAD-172
changeset 1481 1418627a6351
parent 1479 5f44fbef4658
child 1482 815bcc9d42b1
     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 @@ -29,6 +29,17 @@
     1.4  
     1.5  @implementation PEPPassphraseCache
     1.6  
     1.7 +static PEPPassphraseCache *s_sharedInstance;
     1.8 +
     1.9 ++ (void)initialize
    1.10 +{
    1.11 +    static BOOL initialized = NO;
    1.12 +    if (!initialized) {
    1.13 +        initialized = YES;
    1.14 +        s_sharedInstance = [[PEPPassphraseCache alloc] init];
    1.15 +    }
    1.16 +}
    1.17 +
    1.18  /// Internal constructor (for now).
    1.19  - (instancetype)initWithPassphraseTimeout:(NSTimeInterval)timeout
    1.20                        checkExpiryInterval:(NSTimeInterval)checkExpiryInterval