]> git.saurik.com Git - apple/security.git/blob - KeychainCircle/KCAccountKCCircleDelegate.h
Security-58286.230.21.tar.gz
[apple/security.git] / KeychainCircle / KCAccountKCCircleDelegate.h
1 //
2 // KCAccountKCCircleDelegate.h
3 // Security
4 //
5
6 #import <KeychainCircle/KCJoiningSession.h>
7
8 @interface KCJoiningRequestAccountCircleDelegate : NSObject < KCJoiningRequestCircleDelegate>
9 /*!
10 Get this devices peer info (As Application)
11
12 @result
13 SOSPeerInfoRef object or NULL if we had an error.
14 */
15 - (SOSPeerInfoRef) copyPeerInfoError: (NSError**) error;
16
17 /*!
18 Handle recipt of confirmed circleJoinData over the channel
19
20 @parameter circleJoinData
21 Data the acceptor made to allow us to join the circle.
22 @parameter version
23 Piggybacking version, let's secd know it should expect more data
24 */
25 - (bool) processCircleJoinData: (NSData*) circleJoinData version:(PiggyBackProtocolVersion)version error: (NSError**)error;
26
27 + (instancetype) delegate;
28
29 @end
30
31 @interface KCJoiningAcceptAccountCircleDelegate : NSObject < KCJoiningAcceptCircleDelegate>
32 /*!
33 Handle the request's peer info and get the blob they can use to get in circle
34 @param peer
35 SOSPeerInfo sent from requestor to apply to the circle
36 @param error
37 Error resulting in looking at peer and trying to produce circle join data
38 @result
39 Data containing blob the requestor can use to get in circle
40 */
41 - (NSData*) circleJoinDataFor: (SOSPeerInfoRef) peer
42 error: (NSError**) error;
43 -(NSData*) circleGetInitialSyncViews: (NSError**) error;
44
45 + (instancetype) delegate;
46
47 @end