]> git.saurik.com Git - apple/security.git/blob - keychain/escrowrequest/operations/EscrowRequestPerformEscrowEnrollOperation.h
Security-59754.80.3.tar.gz
[apple/security.git] / keychain / escrowrequest / operations / EscrowRequestPerformEscrowEnrollOperation.h
1
2 #import <Foundation/Foundation.h>
3 #import <CoreCDP/CDPStateController.h>
4
5 #import "keychain/escrowrequest/generated_source/SecEscrowPendingRecord.h"
6 #import "keychain/ot/OctagonStateMachine.h"
7 #import "keychain/ckks/CKKSGroupOperation.h"
8
9 NS_ASSUME_NONNULL_BEGIN
10
11 @interface EscrowRequestPerformEscrowEnrollOperation : CKKSGroupOperation <OctagonStateTransitionOperationProtocol>
12
13 @property uint64_t numberOfRecordsUploaded;
14
15 - (instancetype)initWithIntendedState:(OctagonState*)intendedState
16 errorState:(OctagonState*)errorState
17 enforceRateLimiting:(bool)enforceRateLimiting
18 lockStateTracker:(CKKSLockStateTracker*)lockStateTracker;
19
20 + (void)cdpUploadPrerecord:(SecEscrowPendingRecord*)recordToSend
21 secretType:(CDPDeviceSecretType)secretType
22 reply:(void (^)(BOOL didUpdate, NSError* _Nullable error))reply;
23 @end
24
25 NS_ASSUME_NONNULL_END