]> git.saurik.com Git - apple/security.git/blob - OSX/sec/SOSCircle/SecureObjectSync/SOSTransportCircle.m
Security-58286.270.3.0.1.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSTransportCircle.m
1 #import "Security/SecureObjectSync/SOSAccountPriv.h"
2 #include <SOSTransport.h>
3
4 @implementation SOSCircleStorageTransport
5
6 @synthesize account = account;
7
8 -(id)init
9 {
10 return [super init];
11
12 }
13 -(SOSCircleStorageTransport*) initWithAccount:(SOSAccount*)acct
14 {
15 self = [super init];
16 if(self){
17 self.account = acct;
18 }
19 return self;
20 }
21
22 -(SOSAccount*)getAccount
23 {
24 return self.account;
25 }
26
27 -(CFIndex)circleGetTypeID
28 {
29 return kUnknown;
30 }
31 -(CFIndex)getTransportType
32 {
33 return kUnknown;
34 }
35
36 -(bool) expireRetirementRecords:(CFDictionaryRef) retirements err:(CFErrorRef *)error
37 {
38 return true;
39 }
40
41 -(bool) flushChanges:(CFErrorRef *)error
42 {
43 return true;
44 }
45 -(bool) postCircle:(CFStringRef)circleName circleData:(CFDataRef)circle_data err:(CFErrorRef *)error
46 {
47 return true;
48 }
49
50 -(bool) postRetirement:(CFStringRef) circleName peer:(SOSPeerInfoRef) peer err:(CFErrorRef *)error{
51 return true;
52 }
53
54 -(CFDictionaryRef)handleRetirementMessages:(CFMutableDictionaryRef) circle_retirement_messages_table err:(CFErrorRef *)error
55 {
56 return CFDictionaryCreateMutableForCFTypes(kCFAllocatorDefault);
57 }
58
59 -(CFArrayRef) handleCircleMessagesAndReturnHandledCopy:(CFMutableDictionaryRef) circle_circle_messages_table err:(CFErrorRef *)error
60 {
61 return CFArrayCreateMutableForCFTypes(kCFAllocatorDefault);
62 }
63
64 @end
65