]> git.saurik.com Git - apple/security.git/blob - keychain/SecureObjectSync/SOSTransportCircleCK.m
Security-59754.41.1.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 if ((self = [super init])) {
19 SOSRegisterTransportCircle(self);
20 }
21 return self;
22 }
23
24 -(id) initWithAccount:(SOSAccount*)acct
25 {
26 if ((self = [super init])) {
27 self.account = acct;
28 }
29 return self;
30 }
31
32 -(CFIndex) getTransportType
33 {
34 return kCK;
35 }
36 -(SOSAccount*) getAccount
37 {
38 return self.account;
39 }
40
41 -(bool) expireRetirementRecords:(CFDictionaryRef) retirements err:(CFErrorRef *)error
42 {
43 return true;
44 }
45
46 -(bool) flushChanges:(CFErrorRef *)error
47 {
48 return true;
49 }
50 -(bool) postCircle:(CFStringRef)circleName circleData:(CFDataRef)circle_data err:(CFErrorRef *)error
51 {
52 return true;
53 }
54 -(bool) postRetirement:(CFStringRef) circleName peer:(SOSPeerInfoRef) peer err:(CFErrorRef *)error
55 {
56 return true;
57 }
58
59 -(CFDictionaryRef)handleRetirementMessages:(CFMutableDictionaryRef) circle_retirement_messages_table err:(CFErrorRef *)error
60 {
61 return NULL;
62 }
63 -(CFArrayRef)CF_RETURNS_RETAINED handleCircleMessagesAndReturnHandledCopy:(CFMutableDictionaryRef) circle_circle_messages_table err:(CFErrorRef *)error
64 {
65 return NULL;
66 }
67
68 @end