]> git.saurik.com Git - apple/security.git/blob - OSX/sec/SOSCircle/SecureObjectSync/SOSTransportCoder.h
Security-57337.20.44.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSTransportCoder.h
1
2 #ifndef SOSTransportCoder_h
3 #define SOSTransportCoder_h
4 #include <Security/SecureObjectSync/SOSTransportMessage.h>
5 #include <Security/SecureObjectSync/SOSCoder.h>
6
7 enum SOSCoderUnwrapStatus{
8 SOSCoderUnwrapError = 0,
9 SOSCoderUnwrapDecoded = 1,
10 SOSCoderUnwrapHandled = 2
11 };
12
13 enum SOSCoderUnwrapStatus SOSTransportMessageHandleCoderMessage(SOSTransportMessageRef transport, CFStringRef peer_id, CFDataRef codedMessage, CFDataRef *decodedMessage, CFErrorRef *error);
14
15 bool SOSTransportMessageSavePeerCoderData(SOSTransportMessageRef transport, SOSCoderRef coder, CFStringRef peer_id, CFErrorRef *error);
16
17 bool SOSTransportCoderInitializeForPeer(SOSTransportMessageRef transport, SOSFullPeerInfoRef myPeerInfo, SOSPeerInfoRef peerInfo, CFErrorRef *error);
18 bool SOSTransportMessageSendMessageIfNeeded(SOSTransportMessageRef transport, CFStringRef circle_id, CFStringRef peer_id, CFErrorRef *error);
19
20
21 #endif