]> git.saurik.com Git - apple/security.git/blob - keychain/SecureObjectSync/SOSAccountTrustClassic+Expansion.h
Security-59306.101.1.tar.gz
[apple/security.git] / keychain / 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 "keychain/SecureObjectSync/SOSAccountTrustClassic.h"
12
13 #include <Security/SecureObjectSync/SOSViews.h>
14 #import "keychain/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) resetAccountToEmpty:(SOSAccount*)account transport: (SOSCircleStorageTransport*)circleTransport err:(CFErrorRef*) error;
24 -(bool) resetAccountToEmptyWithAnalytics:(SOSAccount*)account transport: (SOSCircleStorageTransport*)circleTransport parentEvent:(NSData*)parentEvent err:(CFErrorRef*) error;
25
26 -(SOSRingRef) copyRing:(CFStringRef) ringName err:(CFErrorRef *)error;
27 -(CFMutableDictionaryRef) getRings:(CFErrorRef *)error;
28 -(bool) forEachRing:(RingNameBlock)block;
29 -(bool) setRing:(SOSRingRef) addRing ringName:(CFStringRef) ringName err:(CFErrorRef*)error;
30 //generic expansion
31 -(bool) ensureExpansion:(CFErrorRef *)error;
32 -(bool) clearValueFromExpansion:(CFStringRef) key err:(CFErrorRef *)error;
33 -(bool) setValueInExpansion:(CFStringRef) key value:(CFTypeRef) value err:(CFErrorRef *)error;
34 -(CFTypeRef) getValueFromExpansion:(CFStringRef)key err:(CFErrorRef*)error;
35 -(void) setRings:(CFMutableDictionaryRef) newrings;
36 -(bool) valueSetContainsValue:(CFStringRef) key value:(CFTypeRef) value;
37 -(void) valueUnionWith:(CFStringRef) key valuesToUnion:(CFSetRef) valuesToUnion;
38 -(void) valueSubtractFrom:(CFStringRef) key valuesToSubtract:(CFSetRef) valuesToSubtract;
39 -(void) pendEnableViewSet:(CFSetRef) enabledViews;
40 -(bool) resetAllRings:(SOSAccount*)account err:(CFErrorRef *)error;
41 -(bool) checkForRings:(CFErrorRef*)error;
42
43 @end
44
45 #endif /* SOSAccountTrustClassic_Expansion_h */