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.
33 lines
782 B
Objective-C
33 lines
782 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "TSAccountManager.h"
|
|
|
|
@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
|