]> git.saurik.com Git - apple/security.git/blob - OSX/sec/SOSCircle/SecureObjectSync/SOSTransportMessageIDS.h
Security-57336.1.9.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSTransportMessageIDS.h
1 //
2 // SOSTransportMessageIDS.h
3 // sec
4 //
5 //
6 #include <Security/SecureObjectSync/SOSAccount.h>
7
8 typedef enum {
9 kIDSStartPingTestMessage = 1,
10 kIDSEndPingTestMessage= 2,
11 kIDSSendOneMessage = 3,
12 kIDSSyncMessagesRaw = 4,
13 kIDSSyncMessagesCompact =5
14 } idsOperation;
15
16 //error handling stuff
17
18 typedef enum {
19 kSecIDSErrorNoDeviceID = -1, //default case
20 kSecIDSErrorNotRegistered = -2,
21 kSecIDSErrorFailedToSend=-3,
22 kSecIDSErrorCouldNotFindMatchingAuthToken = -4,
23 kSecIDSErrorDeviceIsLocked = -5
24 } idsError;
25
26
27 extern const CFStringRef kSecIDSErrorDomain;
28
29 typedef struct __OpaqueSOSTransportMessageIDS *SOSTransportMessageIDSRef;
30
31 SOSTransportMessageIDSRef SOSTransportMessageIDSCreate(SOSAccountRef account, CFStringRef circleName, CFErrorRef *error);
32
33 HandleIDSMessageReason SOSTransportMessageIDSHandleMessage(SOSAccountRef account, CFDictionaryRef message, CFErrorRef *error);
34