comparison dstep/security/SecAccess.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.SecAccess;
8
9 import dstep.corefoundation.CFArray;
10 import dstep.corefoundation.CFBase;
11 import dstep.security.SecBase;
12 import dstep.security.cssmtype;
13
14 extern (C)
15 {
16 uint SecAccessGetTypeID ();
17 int SecAccessCreate (CFStringRef descriptor, CFArrayRef trustedlist, SecAccessRef* accessRef);
18 int SecAccessCreateFromOwnerAndACL (CSSM_ACL_OWNER_PROTOTYPE* owner, uint aclCount, CSSM_ACL_ENTRY_INFO* acls, SecAccessRef* accessRef);
19 int SecAccessGetOwnerAndACL (SecAccessRef accessRef, CSSM_ACL_OWNER_PROTOTYPE_PTR* owner, uint* aclCount, CSSM_ACL_ENTRY_INFO_PTR* acls);
20 int SecAccessCopyACLList (SecAccessRef accessRef, CFArrayRef* aclList);
21 int SecAccessCopySelectedACLList (SecAccessRef accessRef, int action, CFArrayRef* aclList);
22 }