Mercurial > projects > dstep
comparison dstep/security/SecIdentity.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 | 19885b43130e |
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.SecIdentity; | |
8 | |
9 //import dstep.AvailabilityMacros; | |
10 import dstep.corefoundation.CFArray; | |
11 import dstep.corefoundation.CFBase; | |
12 import dstep.security.SecBase; | |
13 import dstep.security.cssmtype; | |
14 | |
15 extern (C) | |
16 { | |
17 extern | |
18 { | |
19 const CFStringRef kSecIdentityDomainDefault; | |
20 const CFStringRef kSecIdentityDomainKerberosKDC; | |
21 } | |
22 } | |
23 | |
24 extern (C) | |
25 { | |
26 uint SecIdentityGetTypeID (); | |
27 int SecIdentityCreateWithCertificate (CFTypeRef keychainOrArray, SecCertificateRef certificateRef, SecIdentityRef* identityRef); | |
28 int SecIdentityCopyCertificate (SecIdentityRef identityRef, SecCertificateRef* certificateRef); | |
29 int SecIdentityCopyPrivateKey (SecIdentityRef identityRef, SecKeyRef* privateKeyRef); | |
30 int SecIdentityCopyPreference (CFStringRef name, uint keyUsage, CFArrayRef validIssuers, SecIdentityRef* identity); | |
31 int SecIdentitySetPreference (SecIdentityRef identity, CFStringRef name, uint keyUsage); | |
32 int SecIdentityCopySystemIdentity (CFStringRef domain, SecIdentityRef* idRef, CFStringRef* actualDomain); | |
33 int SecIdentitySetSystemIdentity (CFStringRef domain, SecIdentityRef idRef); | |
34 } |