]> git.saurik.com Git - apple/security.git/blob - keychain/SecureObjectSync/SOSAccountTrustClassic+Circle.h
Security-59754.60.13.tar.gz
[apple/security.git] / keychain / SecureObjectSync / SOSAccountTrustClassic+Circle.h
1 //
2 // SOSAccountTrustClassic+Circle.h
3 // Security
4 //
5
6 #ifndef SOSAccountTrustClassic_Circle_h
7 #define SOSAccountTrustClassic_Circle_h
8
9 #import "keychain/SecureObjectSync/SOSAccountTrustClassic.h"
10 #import "keychain/SecureObjectSync/SOSTransportCircleKVS.h"
11
12 @interface SOSAccountTrustClassic (Circle)
13 //Circle
14 -(SOSCCStatus) getCircleStatusOnly:(CFErrorRef*) error;
15 -(SOSCircleRef) ensureCircle:(SOSAccount*)account name:(CFStringRef)name err:(CFErrorRef *)error;
16 -(bool) modifyCircle:(SOSCircleStorageTransport*)circleTransport err:(CFErrorRef*)error action:(SOSModifyCircleBlock)block;
17 -(SOSCircleRef) getCircle:(CFErrorRef *)error;
18 -(bool) hasCircle:(CFErrorRef*) error;
19 -(void) generationSignatureUpdateWith:(SOSAccount*)account key:(SecKeyRef) privKey;
20 -(bool) isInCircleOnly:(CFErrorRef *)error;
21 -(void) forEachCirclePeerExceptMe:(SOSIteratePeerBlock)block;
22 -(bool) leaveCircle:(SOSAccount*)account err:(CFErrorRef*) error;
23 -(bool) leaveCircleWithAccount:(SOSAccount*)account err:(CFErrorRef*) error;
24 -(bool) resetToOffering:(SOSAccountTransaction*) aTxn key:(SecKeyRef)userKey err:(CFErrorRef*) error;
25 -(bool) resetCircleToOffering:(SOSAccountTransaction*) aTxn userKey:(SecKeyRef) user_key err:(CFErrorRef *)error;
26 -(SOSCCStatus) thisDeviceStatusInCircle:(SOSCircleRef) circle peer:(SOSPeerInfoRef) this_peer;
27 -(bool) updateCircle:(SOSCircleStorageTransport*)circleTransport newCircle:(SOSCircleRef) newCircle err:(CFErrorRef*)error;
28
29 -(bool) updateCircleFromRemote:(SOSCircleStorageTransport*)circleTransport newCircle:(SOSCircleRef)newCircle err:(CFErrorRef*)error;
30
31 -(CFArrayRef) copySortedPeerArray:(CFErrorRef *)error
32 action:(SOSModifyPeersInCircleBlock)block;
33 -(bool) handleUpdateCircle:(SOSCircleRef) prospective_circle transport:(SOSCircleStorageTransport*)circleTransport update:(bool) writeUpdate err:(CFErrorRef*)error;
34 -(bool) joinCircle:(SOSAccountTransaction*) aTxn userKey:(SecKeyRef)user_key useCloudPeer:(bool)use_cloud_peer err:(CFErrorRef*) error;
35 -(bool) fixICloudIdentities:(SOSAccount *) account circle: (SOSCircleRef) circle;
36
37 @end
38
39 #endif /* SOSAccountTrustClassic_Circle_h */