]> git.saurik.com Git - apple/security.git/blobdiff - OSX/sec/SOSCircle/SecureObjectSync/SOSCloudCircleInternal.h
Security-57740.51.3.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSCloudCircleInternal.h
index 42a0794edba8e775c33c64626322b13b1218a74d..82e2a4e4266adb6b1a09e608fbc8aa54c0c65160 100644 (file)
@@ -60,18 +60,25 @@ bool SOSCCAccountIsNew(CFErrorRef *error);
 
 /*!
  @function SOSCCHandleIDSMessage
- @abstract Handles an IDS message from IDSKeychainSyncingProxy
+ @abstract Handles an IDS message from KeychainSyncingOverIDSProxy
  @param IDS The incoming IDS message
  @param error What went wrong if we returned false
  */
 HandleIDSMessageReason SOSCCHandleIDSMessage(CFDictionaryRef IDS, CFErrorRef* error);
 
+/*!
+ @function SOSCCProcessSyncWithPeers
+ @abstract Returns the peers for whom we handled syncing from the list send to us.
+ @param peers Set of peerIDs to sync with
+ @param backupPeers Set of backup peerIDs to sync with
+ */
+CFSetRef /* CFString */ SOSCCProcessSyncWithPeers(CFSetRef peers, CFSetRef backupPeers, CFErrorRef* error);
+
 /*!
  @function SOSCCProcessSyncWithAllPeers
  @abstract Returns the information (string, hopefully URL) that will lead to an explanation of why you have an incompatible circle.
  @param error What went wrong if we returned NULL.
  */
-
 SyncWithAllPeersReason SOSCCProcessSyncWithAllPeers(CFErrorRef* error);
 
 bool SOSCCProcessEnsurePeerRegistration(CFErrorRef* error);
@@ -111,7 +118,7 @@ bool SOSCCIDSPingTest(CFStringRef message, CFErrorRef *error);
 
 /*!
  @function SOSCCIDSDeviceIDIsAvailableTest
- @abstract Attempts to communicate with IDSKeychainSyncingProxy to retrieve the device ID using IDS framework
+ @abstract Attempts to communicate with KeychainSyncingOverIDSProxy to retrieve the device ID using IDS framework
  @param error What went wrong if we returned false
  */
 bool SOSCCIDSDeviceIDIsAvailableTest(CFErrorRef *error);
@@ -134,11 +141,16 @@ CFDataRef SOSCCCopyAccountState(CFErrorRef* error);
 bool SOSCCDeleteAccountState(CFErrorRef *error);
 CFDataRef SOSCCCopyEngineData(CFErrorRef* error);
 bool SOSCCDeleteEngineState(CFErrorRef *error);
-bool SOSCCRequestSyncWithPeerOverKVS( CFStringRef peerID, CFErrorRef *error);
-bool SOSCCRequestSyncWithPeerOverIDS(CFStringRef peerID, CFErrorRef *error);
+bool SOSCCRequestSyncWithPeerOverKVS( CFStringRef peerID, CFDataRef message, CFErrorRef *error);
+bool SOSCCClearPeerMessageKeyInKVS(CFStringRef peerID, CFErrorRef *error);
+CFDataRef SOSCCCopyRecoveryPublicKey(CFErrorRef *error);
+CFDictionaryRef SOSCCCopyBackupInformation(CFErrorRef *error);
+bool SOSCCRequestSyncWithPeerOverKVSUsingIDOnly(CFStringRef peerID, CFErrorRef *error);
 
 char *SOSCCSysdiagnose(const char *directoryname);
 
+void SOSCCForEachEngineStateAsStringFromArray(CFArrayRef states, void (^block)(CFStringRef oneStateString));
+
 __END_DECLS
 
 #endif