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