mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
830 B
C
37 lines
830 B
C
5 years ago
|
//
|
||
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "TSAccountManager.h"
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@interface TSPreKeyManager : NSObject
|
||
|
|
||
|
#pragma mark - State Tracking
|
||
|
|
||
|
+ (BOOL)isAppLockedDueToPreKeyUpdateFailures;
|
||
|
|
||
|
+ (void)incrementPreKeyUpdateFailureCount;
|
||
|
|
||
|
+ (void)clearPreKeyUpdateFailureCount;
|
||
|
|
||
|
+ (void)clearSignedPreKeyRecords;
|
||
|
|
||
|
// This should only be called from the TSPreKeyManager.operationQueue
|
||
|
+ (void)refreshPreKeysDidSucceed;
|
||
|
|
||
|
#pragma mark - Check/Request Initiation
|
||
|
|
||
|
+ (void)rotateSignedPreKeyWithSuccess:(void (^)(void))successHandler failure:(void (^)(NSError *error))failureHandler;
|
||
|
|
||
|
+ (void)createPreKeysWithSuccess:(void (^)(void))successHandler failure:(void (^)(NSError *error))failureHandler;
|
||
|
|
||
|
+ (void)checkPreKeys;
|
||
|
|
||
|
+ (void)checkPreKeysIfNecessary;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|