]> git.saurik.com Git - apple/security.git/blob - Security/sec/SOSCircle/SecureObjectSync/SOSTransportCoder.h
Security-57031.1.35.tar.gz
[apple/security.git] / Security / sec / SOSCircle / SecureObjectSync / SOSTransportCoder.h
1
2 #ifndef SOSTransportCoder_h
3 #define SOSTransportCoder_h
4 #include <SecureObjectSync/SOSTransportMessage.h>
5 #include <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
18
19 #endif