]> git.saurik.com Git - apple/security.git/blob - OSX/sec/SOSCircle/SecureObjectSync/SOSAccountTrustClassic+Expansion.h
Security-58286.270.3.0.1.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSAccountTrustClassic+Expansion.h
1 //
2 // SOSAccountTrustClassic+Expansion_h
3 // Security
4 //
5 //
6
7 #ifndef SOSAccountTrustClassic_Expansion_h
8 #define SOSAccountTrustClassic_Expansion_h
9
10
11 #import "Security/SecureObjectSync/SOSAccountTrustClassic.h"
12
13 #include <Security/SecureObjectSync/SOSViews.h>
14 #import "Security/SecureObjectSync/SOSTransportCircleKVS.h"
15
16 @interface SOSAccountTrustClassic (Expansion)
17
18 //Expansion Dictionary
19 //ring handling
20 -(bool) updateV2Dictionary:(SOSAccount*)account v2:(CFDictionaryRef) newV2Dict;
21 -(bool) handleUpdateRing:(SOSAccount*)account prospectiveRing:(SOSRingRef)prospectiveRing transport:(SOSKVSCircleStorageTransport*)circleTransport userPublicKey:(SecKeyRef)userPublic writeUpdate:(bool)writeUpdate err:(CFErrorRef *)error;
22 -(bool) resetRing:(SOSAccount*)account ringName:(CFStringRef) ringName err:(CFErrorRef *)error;
23 -(bool) leaveRing:(SOSKVSCircleStorageTransport*)circle_transport ring:(SOSRingRef) ring err:(CFErrorRef*) error;
24 -(bool) resetAccountToEmpty:(SOSAccount*)account transport: (SOSCircleStorageTransport*)circleTransport err:(CFErrorRef*) error;
25 -(bool) resetAccountToEmptyWithAnalytics:(SOSAccount*)account transport: (SOSCircleStorageTransport*)circleTransport parentEvent:(NSData*)parentEvent err:(CFErrorRef*) error;
26
27 -(SOSRingRef) copyRing:(CFStringRef) ringName err:(CFErrorRef *)error;
28 -(CFMutableDictionaryRef) getRings:(CFErrorRef *)error;
29 -(bool) forEachRing:(RingNameBlock)block;
30 -(bool) setRing:(SOSRingRef) addRing ringName:(CFStringRef) ringName err:(CFErrorRef*)error;
31 //generic expansion
32 -(bool) ensureExpansion:(CFErrorRef *)error;
33 -(bool) clearValueFromExpansion:(CFStringRef) key err:(CFErrorRef *)error;
34 -(bool) setValueInExpansion:(CFStringRef) key value:(CFTypeRef) value err:(CFErrorRef *)error;
35 -(CFTypeRef) getValueFromExpansion:(CFStringRef)key err:(CFErrorRef*)error;
36 -(void) setRings:(CFMutableDictionaryRef) newrings;
37 -(bool) valueSetContainsValue:(CFStringRef) key value:(CFTypeRef) value;
38 -(void) valueUnionWith:(CFStringRef) key valuesToUnion:(CFSetRef) valuesToUnion;
39 -(void) valueSubtractFrom:(CFStringRef) key valuesToSubtract:(CFSetRef) valuesToSubtract;
40 -(void) pendEnableViewSet:(CFSetRef) enabledViews;
41 -(bool) resetAllRings:(SOSAccount*)account err:(CFErrorRef *)error;
42 -(bool) checkForRings:(CFErrorRef*)error;
43
44 @end
45
46 #endif /* SOSAccountTrustClassic_Expansion_h */