]> git.saurik.com Git - apple/security.git/blob - keychain/ot/proto/OTAccountMetadataClassC.proto
Security-59754.41.1.tar.gz
[apple/security.git] / keychain / ot / proto / OTAccountMetadataClassC.proto
1
2 syntax = "proto2";
3
4 option objc_class_naming = "extended";
5 option objc_class_visibility = "hidden";
6
7 package OT;
8
9 message AccountMetadataClassC {
10
11 // The state of accounts on the system is complicated. Here's how we handle them:
12 // If there is no account, we will be in NO_ACCOUNT and have no altDSID
13 // If there is an SA account, we will bt in NO_ACCOUNT and have an altDSID
14 // If there is an HSA2 account, we will be in ACCOUNT_AVAILABLE and have an altDSID
15
16 // Once you're in an HSA2 account, CDP might be enabled or disabled. If it's not enabled,
17 // then Octagon shouldn't be active.
18
19 enum AccountState {
20 UNKNOWN = 0;
21 NO_ACCOUNT = 1;
22 ACCOUNT_AVAILABLE = 2;
23 ACCOUNT_AVAILABLE_UNUSED = 3;
24 }
25
26 enum TrustState {
27 UNKNOWN = 0;
28 UNTRUSTED = 1;
29 TRUSTED = 2;
30 }
31
32 enum AttemptedAJoinState {
33 UNKNOWN = 0;
34 NOTATTEMPTED = 1;
35 ATTEMPTED = 2;
36 }
37
38 enum CDPState {
39 UNKNOWN = 0;
40 DISABLED = 1;
41 ENABLED = 2;
42 }
43
44 optional string peerID = 1;
45 optional AccountState icloudAccountState = 2;
46 optional int64 epoch = 3;
47 optional string altDSID = 4;
48
49 optional TrustState trustState = 5;
50
51 // Holds the time, in milliseconds since 1970, that the last health checkup query to Cuttlefish was successfully performed
52 optional uint64 lastHealthCheckup = 6;
53
54 optional AttemptedAJoinState attemptedJoin = 7;
55
56 optional CDPState cdpState = 8;
57
58 // Used during development
59 //reserved 9;
60 //reserved 10;
61
62 // This holds the current syncing policy for the local peer, including the view list.
63 optional bytes syncingPolicy = 11;
64
65 // This might contain a voucher for use in joining Octagon.
66 optional bytes voucher = 12;
67 optional bytes voucherSignature = 13;
68 }