comparison dstep/security/SecACL.d @ 11:07194b026fa4

Added bindings to a couple of frameworks, new license + some other things
author Jacob Carlborg <doob@me.com>
date Sat, 01 Aug 2009 15:03:28 +0200
parents
children
comparison
equal deleted inserted replaced
10:27e00625790b 11:07194b026fa4
1 /**
2 * Copyright: Copyright (c) 2009 Jacob Carlborg.
3 * Authors: Jacob Carlborg
4 * Version: Initial created: Jul 22, 2009
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
6 */
7 module dstep.security.SecACL;
8
9 import dstep.corefoundation.CoreFoundation;
10 import dstep.security.SecBase;
11 import dstep.security.cssmapple;
12 import dstep.security.cssmtype;
13
14 extern (C)
15 {
16 uint SecACLGetTypeID ();
17 int SecACLCreateFromSimpleContents (SecAccessRef access, CFArrayRef applicationList, CFStringRef description, CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR* promptSelector, SecACLRef* newAcl);
18 int SecACLRemove (SecACLRef aclRef);
19 int SecACLCopySimpleContents (SecACLRef acl, CFArrayRef* applicationList, CFStringRef* description, CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR* promptSelector);
20 int SecACLSetSimpleContents (SecACLRef acl, CFArrayRef applicationList, CFStringRef description, CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR* promptSelector);
21 int SecACLGetAuthorizations (SecACLRef acl, CSSM_ACL_AUTHORIZATION_TAG* tags, uint* tagCount);
22 int SecACLSetAuthorizations (SecACLRef acl, CSSM_ACL_AUTHORIZATION_TAG* tags, uint tagCount);
23 }