IOSAD-172 Use NSTimeInterval consistently for timeout IOSAD-172
authorDirk Zimmermann <dz@pep.security>
Fri, 26 Jun 2020 16:54:34 +0200
branchIOSAD-172
changeset 1470f6c4020bf409
parent 1469 857787b1a954
child 1471 1b27ba747985
IOSAD-172 Use NSTimeInterval consistently for timeout
pEpObjCAdapter/PEPPassphraseCache.h
pEpObjCAdapter/PEPPassphraseCache.m
pEpObjCAdapter/PEPPassphraseCacheInternal.h
     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,8 +12,8 @@
     1.4  
     1.5  @interface PEPPassphraseCache : NSObject
     1.6  
     1.7 -/// Timeout of passwords in seconds, the default being 10 minutes.
     1.8 -@property (nonatomic) NSUInteger timeout;
     1.9 +/// Timeout of passwords in seconds.
    1.10 +@property (nonatomic) NSTimeInterval timeout;
    1.11  
    1.12  /// Add a new password.
    1.13  - (void)addPassphrase:(NSString *)passphrase;
     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 @@ -25,7 +25,7 @@
     2.4  @implementation PEPPassphraseCache
     2.5  
     2.6  /// Internal constructor (for now).
     2.7 -- (instancetype)initWithTimeout:(NSUInteger)timeout
     2.8 +- (instancetype)initWithTimeout:(NSTimeInterval)timeout
     2.9  {
    2.10      self = [super init];
    2.11      if (self) {
     3.1 --- a/pEpObjCAdapter/PEPPassphraseCacheInternal.h	Fri Jun 26 16:54:34 2020 +0200
     3.2 +++ b/pEpObjCAdapter/PEPPassphraseCacheInternal.h	Fri Jun 26 16:54:34 2020 +0200
     3.3 @@ -12,7 +12,7 @@
     3.4  
     3.5  @interface PEPPassphraseCache (internal)
     3.6  
     3.7 -- (instancetype)initWithTimeout:(NSUInteger)timeout;
     3.8 +- (instancetype)initWithTimeout:(NSTimeInterval)timeout;
     3.9  
    3.10  @end
    3.11