2 // SOSAccountTrustClassic+Circle.h
6 #ifndef SOSAccountTrustClassic_Circle_h
7 #define SOSAccountTrustClassic_Circle_h
9 #import "keychain/SecureObjectSync/SOSAccountTrustClassic.h"
10 #import "keychain/SecureObjectSync/SOSTransportCircleKVS.h"
12 @interface
SOSAccountTrustClassic (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
;
29 -(bool) updateCircleFromRemote
:(SOSCircleStorageTransport
*)circleTransport newCircle
:(SOSCircleRef
)newCircle err
:(CFErrorRef
*)error
;
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
;
39 #endif /* SOSAccountTrustClassic_Circle_h */