]> git.saurik.com Git - apple/security.git/blob - sec/SOSCircle/SecureObjectSync/SOSCloudCircleInternal.h
Security-55471.14.18.tar.gz
[apple/security.git] / sec / SOSCircle / SecureObjectSync / SOSCloudCircleInternal.h
1 //
2 // SOSCloudCircleInternal.h
3 //
4 // Created by Mitch Adler on 11/13/12.
5 //
6 //
7
8 #ifndef _SECURITY_SOSCLOUDCIRCLEINTERNAL_H_
9 #define _SECURITY_SOSCLOUDCIRCLEINTERNAL_H_
10
11 #include <SecureObjectSync/SOSCloudCircle.h>
12 #include <xpc/xpc.h>
13 #include <Security/SecKey.h>
14
15 CFArrayRef SOSCCCopyConcurringPeerPeerInfo(CFErrorRef* error);
16
17 bool SOSCCPurgeUserCredentials(CFErrorRef* error);
18
19 CFStringRef SOSCCGetStatusDescription(SOSCCStatus status);
20 SecKeyRef SOSCCGetUserPrivKey(CFErrorRef *error);
21 SecKeyRef SOSCCGetUserPubKey(CFErrorRef *error);
22
23 /*!
24 @function SOSCCProcessSyncWithAllPeers
25 @abstract Returns the information (string, hopefully URL) that will lead to an explanation of why you have an incompatible circle.
26 @param error What went wrong if we returned NULL.
27 */
28
29 SyncWithAllPeersReason SOSCCProcessSyncWithAllPeers(CFErrorRef* error);
30
31 #endif