]> git.saurik.com Git - apple/security.git/blame - keychain/escrowrequest/generated_source/SecEscrowPendingRecord.h
Security-59306.41.2.tar.gz
[apple/security.git] / keychain / escrowrequest / generated_source / SecEscrowPendingRecord.h
CommitLineData
b54c578e
A
1// This file was automatically generated by protocompiler
2// DO NOT EDIT!
3// Compiled from SecEscrowPendingRecord.proto
4
5#import <Foundation/Foundation.h>
6#import <ProtocolBuffer/PBCodable.h>
7
8#ifdef __cplusplus
9#define SECESCROWPENDINGRECORD_FUNCTION extern "C" __attribute__((visibility("hidden")))
10#else
11#define SECESCROWPENDINGRECORD_FUNCTION extern __attribute__((visibility("hidden")))
12#endif
13
14__attribute__((visibility("hidden")))
15@interface SecEscrowPendingRecord : PBCodable <NSCopying>
16{
17 uint64_t _lastCloudServicesTriggerTime;
18 uint64_t _lastEscrowAttemptTime;
19 uint64_t _triggerRequestTime;
20 uint64_t _uploadRetries;
21 NSString *_altDSID;
22 NSData *_serializedPrerecord;
23 NSString *_uuid;
24 BOOL _certCached;
25 BOOL _uploadCompleted;
26 struct {
27 int lastCloudServicesTriggerTime:1;
28 int lastEscrowAttemptTime:1;
29 int triggerRequestTime:1;
30 int uploadRetries:1;
31 int certCached:1;
32 int uploadCompleted:1;
33 } _has;
34}
35
36
37@property (nonatomic, readonly) BOOL hasUuid;
38@property (nonatomic, retain) NSString *uuid;
39
40@property (nonatomic) BOOL hasCertCached;
41/** True if CloudServices has informed us that it's successfully cached a certificate for this request */
42@property (nonatomic) BOOL certCached;
43
44@property (nonatomic, readonly) BOOL hasSerializedPrerecord;
45/**
46 * CloudServices is responsible for serialization and understanding what it has stored here.
47 * This is a shame, but allows knowledge of what's in a escrow record to live in CloudServices, not securityd.
48 */
49@property (nonatomic, retain) NSData *serializedPrerecord;
50
51@property (nonatomic) BOOL hasLastCloudServicesTriggerTime;
52/** Holds the time, in milliseconds since 1970, that the last SBD trigger was attempted */
53@property (nonatomic) uint64_t lastCloudServicesTriggerTime;
54
55@property (nonatomic) BOOL hasLastEscrowAttemptTime;
56/** Holds the time, in milliseconds since 1970, that the last escrow upload was attempted */
57@property (nonatomic) uint64_t lastEscrowAttemptTime;
58
59@property (nonatomic) BOOL hasUploadCompleted;
60/** If set to true, then this pending record is complete, and can be garbage collected */
61@property (nonatomic) BOOL uploadCompleted;
62
63@property (nonatomic) BOOL hasUploadRetries;
64/** Number of upload retries */
65@property (nonatomic) uint64_t uploadRetries;
66
67@property (nonatomic, readonly) BOOL hasAltDSID;
68/** altDSID for requesting user (will be used for cleanup) */
69@property (nonatomic, retain) NSString *altDSID;
70
71@property (nonatomic) BOOL hasTriggerRequestTime;
72/** Request was generated at the time, ms since 1970 */
73@property (nonatomic) uint64_t triggerRequestTime;
74
75// Performs a shallow copy into other
76- (void)copyTo:(SecEscrowPendingRecord *)other;
77
78// Performs a deep merge from other into self
79// If set in other, singular values in self are replaced in self
80// Singular composite values are recursively merged
81// Repeated values from other are appended to repeated values in self
82- (void)mergeFrom:(SecEscrowPendingRecord *)other;
83
84SECESCROWPENDINGRECORD_FUNCTION BOOL SecEscrowPendingRecordReadFrom(__unsafe_unretained SecEscrowPendingRecord *self, __unsafe_unretained PBDataReader *reader);
85
86@end
87