]> git.saurik.com Git - apple/security.git/blob - Security/sec/SOSCircle/SecureObjectSync/SOSTransportMessageKVS.h
Security-57031.1.35.tar.gz
[apple/security.git] / Security / sec / SOSCircle / SecureObjectSync / SOSTransportMessageKVS.h
1
2
3 #ifndef sec_SOSTransportMessageKVS_h
4 #define sec_SOSTransportMessageKVS_h
5 #include <SecureObjectSync/SOSAccount.h>
6
7 //
8 // KVS Stuff
9 //
10
11 typedef struct __OpaqueSOSTransportMessageKVS *SOSTransportMessageKVSRef;
12
13 SOSTransportMessageKVSRef SOSTransportMessageKVSCreate(SOSAccountRef account, CFStringRef circleName, CFErrorRef *error);
14
15 CFStringRef SOSTransportMessageKVSGetCircleName(SOSTransportMessageKVSRef transport);
16
17
18 //
19 // Key interests
20 //
21
22 bool SOSTransportMessageSyncWithPeers(SOSTransportMessageRef transport, CFDictionaryRef circleToPeerIDs, CFErrorRef *error);
23
24 bool SOSTransportMessageKVSAppendKeyInterest(SOSTransportMessageKVSRef transport, CFMutableArrayRef alwaysKeys, CFMutableArrayRef afterFirstUnlockKeys, CFMutableArrayRef unlockedKeys, CFErrorRef *localError);
25
26 bool SOSTransportMessageSendMessageIfNeeded(SOSTransportMessageRef transport, CFStringRef circle_id, CFStringRef peer_id, CFErrorRef *error);
27
28 #endif