]> git.saurik.com Git - apple/security.git/blob - keychain/otpaird/OTPairingConstants.h
Security-59306.11.20.tar.gz
[apple/security.git] / keychain / otpaird / OTPairingConstants.h
1 #define OTPairingMachServiceName "com.apple.security.otpaird"
2
3 #define OTPairingIDSServiceName @"com.apple.private.alloy.octagon"
4
5 #define OTPairingIDSKeyMessageType @"m"
6 #define OTPairingIDSKeyError @"e"
7 #define OTPairingIDSKeySession @"session"
8 #define OTPairingIDSKeyPacket @"packet"
9 #define OTPairingIDSKeyErrorDeprecated @"error"
10
11 enum OTPairingIDSMessageType {
12 OTPairingIDSMessageTypePacket = 1,
13 OTPairingIDSMessageTypeError = 2,
14 OTPairingIDSMessageTypePoke = 3,
15 };
16
17 #define OTPairingXPCKeyOperation "operation"
18 #define OTPairingXPCKeyError "error"
19 #define OTPairingXPCKeySuccess "success"
20
21 #define OTPairingErrorDomain @"com.apple.security.otpaird"
22 enum OTPairingErrorType {
23 OTPairingSuccess = 0,
24 OTPairingErrorTypeLock = 1,
25 OTPairingErrorTypeXPC = 2,
26 OTPairingErrorTypeIDS = 3,
27 OTPairingErrorTypeRemote = 4,
28 OTPairingErrorTypeAlreadyIn = 5,
29 OTPairingErrorTypeBusy = 6,
30 OTPairingErrorTypeKCPairing = 7,
31 };
32
33 enum {
34 OTPairingOperationInitiate = 1,
35 };
36
37 #define OTPairingXPCActivityIdentifier "com.apple.security.otpaird.pairing"
38 #define OTPairingXPCActivityInterval XPC_ACTIVITY_INTERVAL_1_HOUR
39
40 #define OTPairingXPCActivityPoke "com.apple.security.otpaird.poke"