7 #include <SecureObjectSync/SOSTransportMessage.h>
8 #include <SecureObjectSync/SOSTransportMessageKVS.h>
11 // MARK: Key formation
24 extern const CFStringRef kSOSKVSKeyParametersKey
;
25 extern const CFStringRef kSOSKVSInitialSyncKey
;
26 extern const CFStringRef kSOSKVSAccountChangedKey
;
27 extern const CFStringRef sCirclePrefix
;
28 extern const CFStringRef sRetirementPrefix
;
31 SOSKVSKeyType
SOSKVSKeyGetKeyType(CFStringRef key
);
32 SOSKVSKeyType
SOSKVSKeyGetKeyTypeAndParse(CFStringRef key
, CFStringRef
*circle
, CFStringRef
*from
, CFStringRef
*to
);
34 CFStringRef
SOSCircleKeyCreateWithCircle(SOSCircleRef circle
, CFErrorRef
*error
);
35 CFStringRef
SOSCircleKeyCreateWithName(CFStringRef name
, CFErrorRef
*error
);
36 CFStringRef
SOSCircleKeyCopyCircleName(CFStringRef key
, CFErrorRef
*error
);
37 CFStringRef
SOSMessageKeyCreateWithCircleNameAndPeerNames(CFStringRef circleName
, CFStringRef from_peer_name
, CFStringRef to_peer_name
);
39 CFStringRef
SOSMessageKeyCopyCircleName(CFStringRef key
, CFErrorRef
*error
);
40 CFStringRef
SOSMessageKeyCopyFromPeerName(CFStringRef messageKey
, CFErrorRef
*error
);
41 CFStringRef
SOSMessageKeyCreateWithCircleAndPeerNames(SOSCircleRef circle
, CFStringRef from_peer_name
, CFStringRef to_peer_name
);
42 CFStringRef
SOSMessageKeyCreateWithCircleAndPeerInfos(SOSCircleRef circle
, SOSPeerInfoRef from_peer
, SOSPeerInfoRef to_peer
);
44 CFStringRef
SOSRetirementKeyCreateWithCircleNameAndPeer(CFStringRef circle_name
, CFStringRef retirement_peer_name
);
45 CFStringRef
SOSRetirementKeyCreateWithCircleAndPeer(SOSCircleRef circle
, CFStringRef retirement_peer_name
);
47 CFStringRef
SOSMessageKeyCreateFromTransportToPeer(SOSTransportMessageKVSRef transport
, CFStringRef peer_name
);
48 CFStringRef
SOSMessageKeyCreateFromPeerToTransport(SOSTransportMessageKVSRef transport
, CFStringRef peer_name
);