]> git.saurik.com Git - apple/security.git/blame - OSX/sec/SOSCircle/SecureObjectSync/SOSPeerInfoSecurityProperties.h
Security-57740.60.18.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSPeerInfoSecurityProperties.h
CommitLineData
5c19dc3a
A
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
19typedef struct __OpaqueSOSSecurityProperty {
20 CFRuntimeBase _base;
21 CFStringRef label;
22} *SOSSecurityPropertyRef;
23
24bool SOSSecurityPropertiesSetDefault(SOSPeerInfoRef pi, CFErrorRef *error);
25CFMutableSetRef SOSSecurityPropertiesCreateDefault(SOSPeerInfoRef pi, CFErrorRef *error);
26
27// Basic interfaces to change and query Security Properties
28SOSSecurityPropertyResultCode SOSSecurityPropertyEnable(SOSPeerInfoRef pi, CFStringRef propertyname, CFErrorRef *error);
29SOSSecurityPropertyResultCode SOSSecurityPropertyDisable(SOSPeerInfoRef pi, CFStringRef propertyname, CFErrorRef *error);
30SOSSecurityPropertyResultCode SOSSecurityPropertyQuery(SOSPeerInfoRef pi, CFStringRef propertyname, CFErrorRef *error);
31
32CFSetRef SOSSecurityPropertyGetAllCurrent(void);
33CFMutableSetRef SOSPeerInfoCopySecurityProperty(SOSPeerInfoRef pi);
34
35#endif /* defined(_sec_SOSPeerInfoSecurityProperties_) */