IOSAD-172 Access to shared instance for users IOSAD-172
authorDirk Zimmermann <dz@pep.security>
Fri, 26 Jun 2020 16:54:34 +0200
branchIOSAD-172
changeset 1482815bcc9d42b1
parent 1481 1418627a6351
child 1483 00aad104a729
IOSAD-172 Access to shared instance for users
pEpObjCAdapter/PEPPassphraseCache.h
pEpObjCAdapter/PEPPassphraseCache.m
     1.1 --- a/pEpObjCAdapter/PEPPassphraseCache.h	Fri Jun 26 16:54:34 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPPassphraseCache.h	Fri Jun 26 16:54:34 2020 +0200
     1.3 @@ -12,6 +12,8 @@
     1.4  
     1.5  @interface PEPPassphraseCache : NSObject
     1.6  
     1.7 ++ (instancetype)sharedInstance;
     1.8 +
     1.9  /// Add a new password.
    1.10  - (void)addPassphrase:(NSString *)passphrase;
    1.11  
     2.1 --- a/pEpObjCAdapter/PEPPassphraseCache.m	Fri Jun 26 16:54:34 2020 +0200
     2.2 +++ b/pEpObjCAdapter/PEPPassphraseCache.m	Fri Jun 26 16:54:34 2020 +0200
     2.3 @@ -40,6 +40,11 @@
     2.4      }
     2.5  }
     2.6  
     2.7 ++ (instancetype)sharedInstance
     2.8 +{
     2.9 +    return s_sharedInstance;
    2.10 +}
    2.11 +
    2.12  /// Internal constructor (for now).
    2.13  - (instancetype)initWithPassphraseTimeout:(NSTimeInterval)timeout
    2.14                        checkExpiryInterval:(NSTimeInterval)checkExpiryInterval