Mercurial > projects > dstep
comparison dstep/security/SecAsn1Coder.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.SecAsn1Coder; | |
8 | |
9 import dstep.security.SecAsn1Types; | |
10 import dstep.security.SecBase; | |
11 import dstep.security.cssmtype; | |
12 //import dstep.sys.types; | |
13 | |
14 struct SecAsn1Coder; | |
15 | |
16 alias SecAsn1Coder* SecAsn1CoderRef; | |
17 | |
18 extern (C) | |
19 { | |
20 int SecAsn1CoderCreate (SecAsn1CoderRef* coder); | |
21 int SecAsn1CoderRelease (SecAsn1CoderRef coder); | |
22 int SecAsn1Decode (SecAsn1CoderRef coder, void* src, uint len, SecAsn1Template* templates, void* dest); | |
23 int SecAsn1DecodeData (SecAsn1CoderRef coder, CSSM_DATA* src, SecAsn1Template* templ, void* dest); | |
24 int SecAsn1EncodeItem (SecAsn1CoderRef coder, void* src, SecAsn1Template* templates, CSSM_DATA* dest); | |
25 void* SecAsn1Malloc (SecAsn1CoderRef coder, uint len); | |
26 int SecAsn1AllocItem (SecAsn1CoderRef coder, CSSM_DATA* item, uint len); | |
27 int SecAsn1AllocCopy (SecAsn1CoderRef coder, void* src, uint len, CSSM_DATA* dest); | |
28 int SecAsn1AllocCopyItem (SecAsn1CoderRef coder, CSSM_DATA* src, CSSM_DATA* dest); | |
29 } |