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