]> git.saurik.com Git - apple/security.git/blob - OSX/sec/SOSCircle/SecureObjectSync/SOSPeerInfoSecurityProperties.h
Security-58286.51.6.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSPeerInfoSecurityProperties.h
1 //
2 // SOSPeerInfoSecurityProperties.h
3 // sec
4 //
5 // Created by Richard Murphy on 3/14/15.
6 //
7 //
8
9 #ifndef _sec_SOSPeerInfoSecurityProperties_
10 #define _sec_SOSPeerInfoSecurityProperties_
11
12
13 #include <CoreFoundation/CFRuntime.h>
14 #include <CoreFoundation/CoreFoundation.h>
15 #include <Security/SecureObjectSync/SOSCloudCircle.h>
16 #include <Security/SecureObjectSync/SOSPeerInfo.h>
17 #include <Security/SecureObjectSync/SOSAccount.h>
18
19 typedef struct __OpaqueSOSSecurityProperty {
20 CFRuntimeBase _base;
21 CFStringRef label;
22 } *SOSSecurityPropertyRef;
23
24 bool SOSSecurityPropertiesSetDefault(SOSPeerInfoRef pi, CFErrorRef *error);
25 CFMutableSetRef SOSSecurityPropertiesCreateDefault(SOSPeerInfoRef pi, CFErrorRef *error);
26
27 // Basic interfaces to change and query Security Properties
28 SOSSecurityPropertyResultCode SOSSecurityPropertyEnable(SOSPeerInfoRef pi, CFStringRef propertyname, CFErrorRef *error);
29 SOSSecurityPropertyResultCode SOSSecurityPropertyDisable(SOSPeerInfoRef pi, CFStringRef propertyname, CFErrorRef *error);
30 SOSSecurityPropertyResultCode SOSSecurityPropertyQuery(SOSPeerInfoRef pi, CFStringRef propertyname, CFErrorRef *error);
31
32 CFSetRef SOSSecurityPropertyGetAllCurrent(void);
33 CFMutableSetRef SOSPeerInfoCopySecurityProperty(SOSPeerInfoRef pi);
34
35 #endif /* defined(_sec_SOSPeerInfoSecurityProperties_) */