1 // This file was automatically generated by protocompiler
3 // Compiled from SecEscrowPendingRecord.proto
5 #import <Foundation/Foundation.h>
6 #import <ProtocolBuffer/PBCodable.h>
9 #define SECESCROWPENDINGRECORD_FUNCTION extern "C" __attribute__((visibility("hidden")))
11 #define SECESCROWPENDINGRECORD_FUNCTION extern __attribute__((visibility("hidden")))
14 __attribute__((visibility("hidden")))
15 @interface SecEscrowPendingRecord
: PBCodable
<NSCopying
>
17 uint64_t _lastCloudServicesTriggerTime
;
18 uint64_t _lastEscrowAttemptTime
;
19 uint64_t _triggerRequestTime
;
20 uint64_t _uploadRetries
;
22 NSData
*_serializedPrerecord
;
25 BOOL _uploadCompleted
;
27 int lastCloudServicesTriggerTime
:1;
28 int lastEscrowAttemptTime
:1;
29 int triggerRequestTime
:1;
32 int uploadCompleted
:1;
37 @
property (nonatomic
, readonly
) BOOL hasUuid
;
38 @
property (nonatomic
, retain
) NSString
*uuid
;
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
;
44 @
property (nonatomic
, readonly
) BOOL hasSerializedPrerecord
;
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.
49 @
property (nonatomic
, retain
) NSData
*serializedPrerecord
;
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
;
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
;
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
;
63 @
property (nonatomic
) BOOL hasUploadRetries
;
64 /** Number of upload retries */
65 @
property (nonatomic
) uint64_t uploadRetries
;
67 @
property (nonatomic
, readonly
) BOOL hasAltDSID
;
68 /** altDSID for requesting user (will be used for cleanup) */
69 @
property (nonatomic
, retain
) NSString
*altDSID
;
71 @
property (nonatomic
) BOOL hasTriggerRequestTime
;
72 /** Request was generated at the time, ms since 1970 */
73 @
property (nonatomic
) uint64_t triggerRequestTime
;
75 // Performs a shallow copy into other
76 - (void)copyTo
:(SecEscrowPendingRecord
*)other
;
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
;
84 SECESCROWPENDINGRECORD_FUNCTION BOOL
SecEscrowPendingRecordReadFrom(__unsafe_unretained SecEscrowPendingRecord
*self
, __unsafe_unretained PBDataReader
*reader
);