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