Mercurial > projects > dstep
annotate dstep/security/cssmapi.d @ 27:57371c29ef73 default tip
ObjcWrap is now automatically mixed in. Added support for building as a dylib with DMD.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Fri, 09 Apr 2010 23:00:22 +0200 |
parents | 07194b026fa4 |
children |
rev | line source |
---|---|
11
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
1 /** |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
3 * Authors: Jacob Carlborg |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
4 * Version: Initial created: Jul 22, 2009 |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
6 */ |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
7 module dstep.security.cssmapi; |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
8 |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
9 import dstep.security.cssmconfig; |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
10 import dstep.security.cssmtype; |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
11 |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
12 extern (C) |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
13 { |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
14 int CSSM_Init (CSSM_VERSION* Version, uint Scope, CSSM_GUID* CallerGuid, uint KeyHierarchy, CSSM_PVC_MODE* PvcPolicy, void* Reserved); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
15 int CSSM_Terminate (); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
16 int CSSM_ModuleLoad (CSSM_GUID* ModuleGuid, uint KeyHierarchy, CSSM_API_ModuleEventHandler AppNotifyCallback, void* AppNotifyCallbackCtx); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
17 int CSSM_ModuleUnload (CSSM_GUID* ModuleGuid, CSSM_API_ModuleEventHandler AppNotifyCallback, void* AppNotifyCallbackCtx); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
18 int CSSM_Introduce (CSSM_GUID* ModuleID, uint KeyHierarchy); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
19 int CSSM_Unintroduce (CSSM_GUID* ModuleID); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
20 int CSSM_ModuleAttach (CSSM_GUID* ModuleGuid, CSSM_VERSION* Version, CSSM_API_MEMORY_FUNCS* MemoryFuncs, uint SubserviceID, uint SubServiceType, uint AttachFlags, uint KeyHierarchy, CSSM_FUNC_NAME_ADDR* FunctionTable, uint NumFunctionTable, void* Reserved, CSSM_MODULE_HANDLE_PTR NewModuleHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
21 int CSSM_ModuleDetach (int ModuleHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
22 int CSSM_SetPrivilege (ulong Privilege); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
23 int CSSM_GetPrivilege (CSSM_PRIVILEGE* Privilege); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
24 int CSSM_GetModuleGUIDFromHandle (int ModuleHandle, CSSM_GUID_PTR ModuleGUID); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
25 int CSSM_GetSubserviceUIDFromHandle (int ModuleHandle, CSSM_SUBSERVICE_UID_PTR SubserviceUID); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
26 int CSSM_ListAttachedModuleManagers (uint* NumberOfModuleManagers, CSSM_GUID_PTR ModuleManagerGuids); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
27 int CSSM_GetAPIMemoryFunctions (int AddInHandle, CSSM_API_MEMORY_FUNCS_PTR AppMemoryFuncs); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
28 int CSSM_CSP_CreateSignatureContext (int CSPHandle, uint AlgorithmID, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_KEY* Key, CSSM_CC_HANDLE* NewContextHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
29 int CSSM_CSP_CreateSymmetricContext (int CSPHandle, uint AlgorithmID, uint Mode, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_KEY* Key, CSSM_DATA* InitVector, uint Padding, void* Reserved, CSSM_CC_HANDLE* NewContextHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
30 int CSSM_CSP_CreateDigestContext (int CSPHandle, uint AlgorithmID, CSSM_CC_HANDLE* NewContextHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
31 int CSSM_CSP_CreateMacContext (int CSPHandle, uint AlgorithmID, CSSM_KEY* Key, CSSM_CC_HANDLE* NewContextHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
32 int CSSM_CSP_CreateRandomGenContext (int CSPHandle, uint AlgorithmID, CSSM_CRYPTO_DATA* Seed, uint Length, CSSM_CC_HANDLE* NewContextHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
33 int CSSM_CSP_CreateAsymmetricContext (int CSPHandle, uint AlgorithmID, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_KEY* Key, uint Padding, CSSM_CC_HANDLE* NewContextHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
34 int CSSM_CSP_CreateDeriveKeyContext (int CSPHandle, uint AlgorithmID, uint DeriveKeyType, uint DeriveKeyLengthInBits, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_KEY* BaseKey, uint IterationCount, CSSM_DATA* Salt, CSSM_CRYPTO_DATA* Seed, CSSM_CC_HANDLE* NewContextHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
35 int CSSM_CSP_CreateKeyGenContext (int CSPHandle, uint AlgorithmID, uint KeySizeInBits, CSSM_CRYPTO_DATA* Seed, CSSM_DATA* Salt, CSSM_DATE* StartDate, CSSM_DATE* EndDate, CSSM_DATA* Params, CSSM_CC_HANDLE* NewContextHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
36 int CSSM_CSP_CreatePassThroughContext (int CSPHandle, CSSM_KEY* Key, CSSM_CC_HANDLE* NewContextHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
37 int CSSM_GetContext (ulong CCHandle, CSSM_CONTEXT_PTR* Context); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
38 int CSSM_FreeContext (CSSM_CONTEXT_PTR Context); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
39 int CSSM_SetContext (ulong CCHandle, CSSM_CONTEXT* Context); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
40 int CSSM_DeleteContext (ulong CCHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
41 int CSSM_GetContextAttribute (CSSM_CONTEXT* Context, uint AttributeType, CSSM_CONTEXT_ATTRIBUTE_PTR* ContextAttribute); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
42 int CSSM_UpdateContextAttributes (ulong CCHandle, uint NumberOfAttributes, CSSM_CONTEXT_ATTRIBUTE* ContextAttributes); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
43 int CSSM_DeleteContextAttributes (ulong CCHandle, uint NumberOfAttributes, CSSM_CONTEXT_ATTRIBUTE* ContextAttributes); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
44 int CSSM_CSP_Login (int CSPHandle, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_DATA* LoginName, void* Reserved); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
45 int CSSM_CSP_Logout (int CSPHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
46 int CSSM_CSP_GetLoginAcl (int CSPHandle, CSSM_STRING* SelectionTag, uint* NumberOfAclInfos, CSSM_ACL_ENTRY_INFO_PTR* AclInfos); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
47 int CSSM_CSP_ChangeLoginAcl (int CSPHandle, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_ACL_EDIT* AclEdit); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
48 int CSSM_GetKeyAcl (int CSPHandle, CSSM_KEY* Key, CSSM_STRING* SelectionTag, uint* NumberOfAclInfos, CSSM_ACL_ENTRY_INFO_PTR* AclInfos); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
49 int CSSM_ChangeKeyAcl (int CSPHandle, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_ACL_EDIT* AclEdit, CSSM_KEY* Key); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
50 int CSSM_GetKeyOwner (int CSPHandle, CSSM_KEY* Key, CSSM_ACL_OWNER_PROTOTYPE_PTR Owner); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
51 int CSSM_ChangeKeyOwner (int CSPHandle, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_KEY* Key, CSSM_ACL_OWNER_PROTOTYPE* NewOwner); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
52 int CSSM_CSP_GetLoginOwner (int CSPHandle, CSSM_ACL_OWNER_PROTOTYPE_PTR Owner); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
53 int CSSM_CSP_ChangeLoginOwner (int CSPHandle, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_ACL_OWNER_PROTOTYPE* NewOwner); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
54 int CSSM_SignData (ulong CCHandle, CSSM_DATA* DataBufs, uint DataBufCount, uint DigestAlgorithm, CSSM_DATA_PTR Signature); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
55 int CSSM_SignDataInit (ulong CCHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
56 int CSSM_SignDataUpdate (ulong CCHandle, CSSM_DATA* DataBufs, uint DataBufCount); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
57 int CSSM_SignDataFinal (ulong CCHandle, CSSM_DATA_PTR Signature); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
58 int CSSM_VerifyData (ulong CCHandle, CSSM_DATA* DataBufs, uint DataBufCount, uint DigestAlgorithm, CSSM_DATA* Signature); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
59 int CSSM_VerifyDataInit (ulong CCHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
60 int CSSM_VerifyDataUpdate (ulong CCHandle, CSSM_DATA* DataBufs, uint DataBufCount); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
61 int CSSM_VerifyDataFinal (ulong CCHandle, CSSM_DATA* Signature); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
62 int CSSM_DigestData (ulong CCHandle, CSSM_DATA* DataBufs, uint DataBufCount, CSSM_DATA_PTR Digest); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
63 int CSSM_DigestDataInit (ulong CCHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
64 int CSSM_DigestDataUpdate (ulong CCHandle, CSSM_DATA* DataBufs, uint DataBufCount); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
65 int CSSM_DigestDataClone (ulong CCHandle, CSSM_CC_HANDLE* ClonednewCCHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
66 int CSSM_DigestDataFinal (ulong CCHandle, CSSM_DATA_PTR Digest); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
67 int CSSM_GenerateMac (ulong CCHandle, CSSM_DATA* DataBufs, uint DataBufCount, CSSM_DATA_PTR Mac); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
68 int CSSM_GenerateMacInit (ulong CCHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
69 int CSSM_GenerateMacUpdate (ulong CCHandle, CSSM_DATA* DataBufs, uint DataBufCount); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
70 int CSSM_GenerateMacFinal (ulong CCHandle, CSSM_DATA_PTR Mac); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
71 int CSSM_VerifyMac (ulong CCHandle, CSSM_DATA* DataBufs, uint DataBufCount, CSSM_DATA* Mac); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
72 int CSSM_VerifyMacInit (ulong CCHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
73 int CSSM_VerifyMacUpdate (ulong CCHandle, CSSM_DATA* DataBufs, uint DataBufCount); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
74 int CSSM_VerifyMacFinal (ulong CCHandle, CSSM_DATA* Mac); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
75 int CSSM_QuerySize (ulong CCHandle, int Encrypt, uint QuerySizeCount, CSSM_QUERY_SIZE_DATA_PTR DataBlockSizes); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
76 int CSSM_EncryptData (ulong CCHandle, CSSM_DATA* ClearBufs, uint ClearBufCount, CSSM_DATA_PTR CipherBufs, uint CipherBufCount, CSSM_SIZE* bytesEncrypted, CSSM_DATA_PTR RemData); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
77 int CSSM_EncryptDataP (ulong CCHandle, CSSM_DATA* ClearBufs, uint ClearBufCount, CSSM_DATA_PTR CipherBufs, uint CipherBufCount, CSSM_SIZE* bytesEncrypted, CSSM_DATA_PTR RemData, ulong Privilege); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
78 int CSSM_EncryptDataInit (ulong CCHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
79 int CSSM_EncryptDataInitP (ulong CCHandle, ulong Privilege); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
80 int CSSM_EncryptDataUpdate (ulong CCHandle, CSSM_DATA* ClearBufs, uint ClearBufCount, CSSM_DATA_PTR CipherBufs, uint CipherBufCount, CSSM_SIZE* bytesEncrypted); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
81 int CSSM_EncryptDataFinal (ulong CCHandle, CSSM_DATA_PTR RemData); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
82 int CSSM_DecryptData (ulong CCHandle, CSSM_DATA* CipherBufs, uint CipherBufCount, CSSM_DATA_PTR ClearBufs, uint ClearBufCount, CSSM_SIZE* bytesDecrypted, CSSM_DATA_PTR RemData); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
83 int CSSM_DecryptDataP (ulong CCHandle, CSSM_DATA* CipherBufs, uint CipherBufCount, CSSM_DATA_PTR ClearBufs, uint ClearBufCount, CSSM_SIZE* bytesDecrypted, CSSM_DATA_PTR RemData, ulong Privilege); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
84 int CSSM_DecryptDataInit (ulong CCHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
85 int CSSM_DecryptDataInitP (ulong CCHandle, ulong Privilege); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
86 int CSSM_DecryptDataUpdate (ulong CCHandle, CSSM_DATA* CipherBufs, uint CipherBufCount, CSSM_DATA_PTR ClearBufs, uint ClearBufCount, CSSM_SIZE* bytesDecrypted); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
87 int CSSM_DecryptDataFinal (ulong CCHandle, CSSM_DATA_PTR RemData); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
88 int CSSM_QueryKeySizeInBits (int CSPHandle, ulong CCHandle, CSSM_KEY* Key, CSSM_KEY_SIZE_PTR KeySize); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
89 int CSSM_GenerateKey (ulong CCHandle, uint KeyUsage, uint KeyAttr, CSSM_DATA* KeyLabel, CSSM_RESOURCE_CONTROL_CONTEXT* CredAndAclEntry, CSSM_KEY_PTR Key); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
90 int CSSM_GenerateKeyP (ulong CCHandle, uint KeyUsage, uint KeyAttr, CSSM_DATA* KeyLabel, CSSM_RESOURCE_CONTROL_CONTEXT* CredAndAclEntry, CSSM_KEY_PTR Key, ulong Privilege); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
91 int CSSM_GenerateKeyPair (ulong CCHandle, uint PublicKeyUsage, uint PublicKeyAttr, CSSM_DATA* PublicKeyLabel, CSSM_KEY_PTR PublicKey, uint PrivateKeyUsage, uint PrivateKeyAttr, CSSM_DATA* PrivateKeyLabel, CSSM_RESOURCE_CONTROL_CONTEXT* CredAndAclEntry, CSSM_KEY_PTR PrivateKey); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
92 int CSSM_GenerateKeyPairP (ulong CCHandle, uint PublicKeyUsage, uint PublicKeyAttr, CSSM_DATA* PublicKeyLabel, CSSM_KEY_PTR PublicKey, uint PrivateKeyUsage, uint PrivateKeyAttr, CSSM_DATA* PrivateKeyLabel, CSSM_RESOURCE_CONTROL_CONTEXT* CredAndAclEntry, CSSM_KEY_PTR PrivateKey, ulong Privilege); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
93 int CSSM_GenerateRandom (ulong CCHandle, CSSM_DATA_PTR RandomNumber); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
94 int CSSM_CSP_ObtainPrivateKeyFromPublicKey (int CSPHandle, CSSM_KEY* PublicKey, CSSM_KEY_PTR PrivateKey); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
95 int CSSM_WrapKey (ulong CCHandle, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_KEY* Key, CSSM_DATA* DescriptiveData, CSSM_WRAP_KEY_PTR WrappedKey); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
96 int CSSM_UnwrapKey (ulong CCHandle, CSSM_KEY* PublicKey, CSSM_WRAP_KEY* WrappedKey, uint KeyUsage, uint KeyAttr, CSSM_DATA* KeyLabel, CSSM_RESOURCE_CONTROL_CONTEXT* CredAndAclEntry, CSSM_KEY_PTR UnwrappedKey, CSSM_DATA_PTR DescriptiveData); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
97 int CSSM_WrapKeyP (ulong CCHandle, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_KEY* Key, CSSM_DATA* DescriptiveData, CSSM_WRAP_KEY_PTR WrappedKey, ulong Privilege); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
98 int CSSM_UnwrapKeyP (ulong CCHandle, CSSM_KEY* PublicKey, CSSM_WRAP_KEY* WrappedKey, uint KeyUsage, uint KeyAttr, CSSM_DATA* KeyLabel, CSSM_RESOURCE_CONTROL_CONTEXT* CredAndAclEntry, CSSM_KEY_PTR UnwrappedKey, CSSM_DATA_PTR DescriptiveData, ulong Privilege); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
99 int CSSM_DeriveKey (ulong CCHandle, CSSM_DATA_PTR Param, uint KeyUsage, uint KeyAttr, CSSM_DATA* KeyLabel, CSSM_RESOURCE_CONTROL_CONTEXT* CredAndAclEntry, CSSM_KEY_PTR DerivedKey); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
100 int CSSM_FreeKey (int CSPHandle, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_KEY_PTR KeyPtr, int Delete); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
101 int CSSM_GenerateAlgorithmParams (ulong CCHandle, uint ParamBits, CSSM_DATA_PTR Param); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
102 int CSSM_CSP_GetOperationalStatistics (int CSPHandle, CSSM_CSP_OPERATIONAL_STATISTICS* Statistics); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
103 int CSSM_GetTimeValue (int CSPHandle, uint TimeAlgorithm, CSSM_DATA* TimeData); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
104 int CSSM_RetrieveUniqueId (int CSPHandle, CSSM_DATA_PTR UniqueID); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
105 int CSSM_RetrieveCounter (int CSPHandle, CSSM_DATA_PTR Counter); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
106 int CSSM_VerifyDevice (int CSPHandle, CSSM_DATA* DeviceCert); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
107 int CSSM_CSP_PassThrough (ulong CCHandle, uint PassThroughId, void* InData, void** OutData); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
108 int CSSM_TP_SubmitCredRequest (int TPHandle, CSSM_TP_AUTHORITY_ID* PreferredAuthority, uint RequestType, CSSM_TP_REQUEST_SET* RequestInput, CSSM_TP_CALLERAUTH_CONTEXT* CallerAuthContext, sint32* EstimatedTime, CSSM_DATA_PTR ReferenceIdentifier); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
109 int CSSM_TP_RetrieveCredResult (int TPHandle, CSSM_DATA* ReferenceIdentifier, CSSM_TP_CALLERAUTH_CONTEXT* CallerAuthCredentials, sint32* EstimatedTime, CSSM_BOOL* ConfirmationRequired, CSSM_TP_RESULT_SET_PTR* RetrieveOutput); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
110 int CSSM_TP_ConfirmCredResult (int TPHandle, CSSM_DATA* ReferenceIdentifier, CSSM_TP_CALLERAUTH_CONTEXT* CallerAuthCredentials, CSSM_TP_CONFIRM_RESPONSE* Responses, CSSM_TP_AUTHORITY_ID* PreferredAuthority); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
111 int CSSM_TP_ReceiveConfirmation (int TPHandle, CSSM_DATA* ReferenceIdentifier, CSSM_TP_CONFIRM_RESPONSE_PTR* Responses, int* ElapsedTime); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
112 int CSSM_TP_CertReclaimKey (int TPHandle, CSSM_CERTGROUP* CertGroup, uint CertIndex, ulong KeyCacheHandle, int CSPHandle, CSSM_RESOURCE_CONTROL_CONTEXT* CredAndAclEntry); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
113 int CSSM_TP_CertReclaimAbort (int TPHandle, ulong KeyCacheHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
114 int CSSM_TP_FormRequest (int TPHandle, CSSM_TP_AUTHORITY_ID* PreferredAuthority, uint FormType, CSSM_DATA_PTR BlankForm); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
115 int CSSM_TP_FormSubmit (int TPHandle, uint FormType, CSSM_DATA* Form, CSSM_TP_AUTHORITY_ID* ClearanceAuthority, CSSM_TP_AUTHORITY_ID* RepresentedAuthority, CSSM_ACCESS_CREDENTIALS_PTR Credentials); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
116 int CSSM_TP_CertGroupVerify (int TPHandle, int CLHandle, int CSPHandle, CSSM_CERTGROUP* CertGroupToBeVerified, CSSM_TP_VERIFY_CONTEXT* VerifyContext, CSSM_TP_VERIFY_CONTEXT_RESULT_PTR VerifyContextResult); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
117 int CSSM_TP_CertCreateTemplate (int TPHandle, int CLHandle, uint NumberOfFields, CSSM_FIELD* CertFields, CSSM_DATA_PTR CertTemplate); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
118 int CSSM_TP_CertGetAllTemplateFields (int TPHandle, int CLHandle, CSSM_DATA* CertTemplate, uint* NumberOfFields, CSSM_FIELD_PTR* CertFields); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
119 int CSSM_TP_CertSign (int TPHandle, int CLHandle, ulong CCHandle, CSSM_DATA* CertTemplateToBeSigned, CSSM_CERTGROUP* SignerCertGroup, CSSM_TP_VERIFY_CONTEXT* SignerVerifyContext, CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, CSSM_DATA_PTR SignedCert); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
120 int CSSM_TP_CrlVerify (int TPHandle, int CLHandle, int CSPHandle, CSSM_ENCODED_CRL* CrlToBeVerified, CSSM_CERTGROUP* SignerCertGroup, CSSM_TP_VERIFY_CONTEXT* VerifyContext, CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
121 int CSSM_TP_CrlCreateTemplate (int TPHandle, int CLHandle, uint NumberOfFields, CSSM_FIELD* CrlFields, CSSM_DATA_PTR NewCrlTemplate); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
122 int CSSM_TP_CertRevoke (int TPHandle, int CLHandle, int CSPHandle, CSSM_DATA* OldCrlTemplate, CSSM_CERTGROUP* CertGroupToBeRevoked, CSSM_CERTGROUP* RevokerCertGroup, CSSM_TP_VERIFY_CONTEXT* RevokerVerifyContext, CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, uint Reason, CSSM_DATA_PTR NewCrlTemplate); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
123 int CSSM_TP_CertRemoveFromCrlTemplate (int TPHandle, int CLHandle, int CSPHandle, CSSM_DATA* OldCrlTemplate, CSSM_CERTGROUP* CertGroupToBeRemoved, CSSM_CERTGROUP* RevokerCertGroup, CSSM_TP_VERIFY_CONTEXT* RevokerVerifyContext, CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, CSSM_DATA_PTR NewCrlTemplate); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
124 int CSSM_TP_CrlSign (int TPHandle, int CLHandle, ulong CCHandle, CSSM_ENCODED_CRL* CrlToBeSigned, CSSM_CERTGROUP* SignerCertGroup, CSSM_TP_VERIFY_CONTEXT* SignerVerifyContext, CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, CSSM_DATA_PTR SignedCrl); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
125 int CSSM_TP_ApplyCrlToDb (int TPHandle, int CLHandle, int CSPHandle, CSSM_ENCODED_CRL* CrlToBeApplied, CSSM_CERTGROUP* SignerCertGroup, CSSM_TP_VERIFY_CONTEXT* ApplyCrlVerifyContext, CSSM_TP_VERIFY_CONTEXT_RESULT_PTR ApplyCrlVerifyResult); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
126 int CSSM_TP_CertGroupConstruct (int TPHandle, int CLHandle, int CSPHandle, CSSM_DL_DB_LIST* DBList, void* ConstructParams, CSSM_CERTGROUP* CertGroupFrag, CSSM_CERTGROUP_PTR* CertGroup); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
127 int CSSM_TP_CertGroupPrune (int TPHandle, int CLHandle, CSSM_DL_DB_LIST* DBList, CSSM_CERTGROUP* OrderedCertGroup, CSSM_CERTGROUP_PTR* PrunedCertGroup); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
128 int CSSM_TP_CertGroupToTupleGroup (int TPHandle, int CLHandle, CSSM_CERTGROUP* CertGroup, CSSM_TUPLEGROUP_PTR* TupleGroup); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
129 int CSSM_TP_TupleGroupToCertGroup (int TPHandle, int CLHandle, CSSM_TUPLEGROUP* TupleGroup, CSSM_CERTGROUP_PTR* CertTemplates); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
130 int CSSM_TP_PassThrough (int TPHandle, int CLHandle, ulong CCHandle, CSSM_DL_DB_LIST* DBList, uint PassThroughId, void* InputParams, void** OutputParams); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
131 int CSSM_AC_AuthCompute (int ACHandle, CSSM_TUPLEGROUP* BaseAuthorizations, CSSM_TUPLEGROUP* Credentials, uint NumberOfRequestors, CSSM_LIST* Requestors, CSSM_LIST* RequestedAuthorizationPeriod, CSSM_LIST* RequestedAuthorization, CSSM_TUPLEGROUP_PTR AuthorizationResult); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
132 int CSSM_AC_PassThrough (int ACHandle, int TPHandle, int CLHandle, ulong CCHandle, CSSM_DL_DB_LIST* DBList, uint PassThroughId, void* InputParams, void** OutputParams); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
133 int CSSM_CL_CertCreateTemplate (int CLHandle, uint NumberOfFields, CSSM_FIELD* CertFields, CSSM_DATA_PTR CertTemplate); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
134 int CSSM_CL_CertGetAllTemplateFields (int CLHandle, CSSM_DATA* CertTemplate, uint* NumberOfFields, CSSM_FIELD_PTR* CertFields); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
135 int CSSM_CL_CertSign (int CLHandle, ulong CCHandle, CSSM_DATA* CertTemplate, CSSM_FIELD* SignScope, uint ScopeSize, CSSM_DATA_PTR SignedCert); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
136 int CSSM_CL_CertVerify (int CLHandle, ulong CCHandle, CSSM_DATA* CertToBeVerified, CSSM_DATA* SignerCert, CSSM_FIELD* VerifyScope, uint ScopeSize); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
137 int CSSM_CL_CertVerifyWithKey (int CLHandle, ulong CCHandle, CSSM_DATA* CertToBeVerified); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
138 int CSSM_CL_CertGetFirstFieldValue (int CLHandle, CSSM_DATA* Cert, CSSM_OID* CertField, CSSM_HANDLE_PTR ResultsHandle, uint* NumberOfMatchedFields, CSSM_DATA_PTR* Value); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
139 int CSSM_CL_CertGetNextFieldValue (int CLHandle, int ResultsHandle, CSSM_DATA_PTR* Value); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
140 int CSSM_CL_CertAbortQuery (int CLHandle, int ResultsHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
141 int CSSM_CL_CertGetKeyInfo (int CLHandle, CSSM_DATA* Cert, CSSM_KEY_PTR* Key); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
142 int CSSM_CL_CertGetAllFields (int CLHandle, CSSM_DATA* Cert, uint* NumberOfFields, CSSM_FIELD_PTR* CertFields); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
143 int CSSM_CL_FreeFields (int CLHandle, uint NumberOfFields, CSSM_FIELD_PTR* Fields); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
144 int CSSM_CL_FreeFieldValue (int CLHandle, CSSM_OID* CertOrCrlOid, CSSM_DATA_PTR Value); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
145 int CSSM_CL_CertCache (int CLHandle, CSSM_DATA* Cert, CSSM_HANDLE_PTR CertHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
146 int CSSM_CL_CertGetFirstCachedFieldValue (int CLHandle, int CertHandle, CSSM_OID* CertField, CSSM_HANDLE_PTR ResultsHandle, uint* NumberOfMatchedFields, CSSM_DATA_PTR* Value); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
147 int CSSM_CL_CertGetNextCachedFieldValue (int CLHandle, int ResultsHandle, CSSM_DATA_PTR* Value); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
148 int CSSM_CL_CertAbortCache (int CLHandle, int CertHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
149 int CSSM_CL_CertGroupToSignedBundle (int CLHandle, ulong CCHandle, CSSM_CERTGROUP* CertGroupToBundle, CSSM_CERT_BUNDLE_HEADER* BundleInfo, CSSM_DATA_PTR SignedBundle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
150 int CSSM_CL_CertGroupFromVerifiedBundle (int CLHandle, ulong CCHandle, CSSM_CERT_BUNDLE* CertBundle, CSSM_DATA* SignerCert, CSSM_CERTGROUP_PTR* CertGroup); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
151 int CSSM_CL_CertDescribeFormat (int CLHandle, uint* NumberOfFields, CSSM_OID_PTR* OidList); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
152 int CSSM_CL_CrlCreateTemplate (int CLHandle, uint NumberOfFields, CSSM_FIELD* CrlTemplate, CSSM_DATA_PTR NewCrl); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
153 int CSSM_CL_CrlSetFields (int CLHandle, uint NumberOfFields, CSSM_FIELD* CrlTemplate, CSSM_DATA* OldCrl, CSSM_DATA_PTR ModifiedCrl); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
154 int CSSM_CL_CrlAddCert (int CLHandle, ulong CCHandle, CSSM_DATA* Cert, uint NumberOfFields, CSSM_FIELD* CrlEntryFields, CSSM_DATA* OldCrl, CSSM_DATA_PTR NewCrl); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
155 int CSSM_CL_CrlRemoveCert (int CLHandle, CSSM_DATA* Cert, CSSM_DATA* OldCrl, CSSM_DATA_PTR NewCrl); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
156 int CSSM_CL_CrlSign (int CLHandle, ulong CCHandle, CSSM_DATA* UnsignedCrl, CSSM_FIELD* SignScope, uint ScopeSize, CSSM_DATA_PTR SignedCrl); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
157 int CSSM_CL_CrlVerify (int CLHandle, ulong CCHandle, CSSM_DATA* CrlToBeVerified, CSSM_DATA* SignerCert, CSSM_FIELD* VerifyScope, uint ScopeSize); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
158 int CSSM_CL_CrlVerifyWithKey (int CLHandle, ulong CCHandle, CSSM_DATA* CrlToBeVerified); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
159 int CSSM_CL_IsCertInCrl (int CLHandle, CSSM_DATA* Cert, CSSM_DATA* Crl, CSSM_BOOL* CertFound); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
160 int CSSM_CL_CrlGetFirstFieldValue (int CLHandle, CSSM_DATA* Crl, CSSM_OID* CrlField, CSSM_HANDLE_PTR ResultsHandle, uint* NumberOfMatchedFields, CSSM_DATA_PTR* Value); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
161 int CSSM_CL_CrlGetNextFieldValue (int CLHandle, int ResultsHandle, CSSM_DATA_PTR* Value); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
162 int CSSM_CL_CrlAbortQuery (int CLHandle, int ResultsHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
163 int CSSM_CL_CrlGetAllFields (int CLHandle, CSSM_DATA* Crl, uint* NumberOfCrlFields, CSSM_FIELD_PTR* CrlFields); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
164 int CSSM_CL_CrlCache (int CLHandle, CSSM_DATA* Crl, CSSM_HANDLE_PTR CrlHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
165 int CSSM_CL_IsCertInCachedCrl (int CLHandle, CSSM_DATA* Cert, int CrlHandle, CSSM_BOOL* CertFound, CSSM_DATA_PTR CrlRecordIndex); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
166 int CSSM_CL_CrlGetFirstCachedFieldValue (int CLHandle, int CrlHandle, CSSM_DATA* CrlRecordIndex, CSSM_OID* CrlField, CSSM_HANDLE_PTR ResultsHandle, uint* NumberOfMatchedFields, CSSM_DATA_PTR* Value); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
167 int CSSM_CL_CrlGetNextCachedFieldValue (int CLHandle, int ResultsHandle, CSSM_DATA_PTR* Value); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
168 int CSSM_CL_CrlGetAllCachedRecordFields (int CLHandle, int CrlHandle, CSSM_DATA* CrlRecordIndex, uint* NumberOfFields, CSSM_FIELD_PTR* CrlFields); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
169 int CSSM_CL_CrlAbortCache (int CLHandle, int CrlHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
170 int CSSM_CL_CrlDescribeFormat (int CLHandle, uint* NumberOfFields, CSSM_OID_PTR* OidList); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
171 int CSSM_CL_PassThrough (int CLHandle, ulong CCHandle, uint PassThroughId, void* InputParams, void** OutputParams); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
172 int CSSM_DL_DbOpen (int DLHandle, char* DbName, CSSM_NET_ADDRESS* DbLocation, uint AccessRequest, CSSM_ACCESS_CREDENTIALS* AccessCred, void* OpenParameters, CSSM_DB_HANDLE* DbHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
173 int CSSM_DL_DbClose (CSSM_DL_DB_HANDLE DLDBHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
174 int CSSM_DL_DbCreate (int DLHandle, char* DbName, CSSM_NET_ADDRESS* DbLocation, CSSM_DBINFO* DBInfo, uint AccessRequest, CSSM_RESOURCE_CONTROL_CONTEXT* CredAndAclEntry, void* OpenParameters, CSSM_DB_HANDLE* DbHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
175 int CSSM_DL_DbDelete (int DLHandle, char* DbName, CSSM_NET_ADDRESS* DbLocation, CSSM_ACCESS_CREDENTIALS* AccessCred); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
176 int CSSM_DL_CreateRelation (CSSM_DL_DB_HANDLE DLDBHandle, uint RelationID, char* RelationName, uint NumberOfAttributes, CSSM_DB_SCHEMA_ATTRIBUTE_INFO* pAttributeInfo, uint NumberOfIndexes, CSSM_DB_SCHEMA_INDEX_INFO* pIndexInfo); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
177 int CSSM_DL_DestroyRelation (CSSM_DL_DB_HANDLE DLDBHandle, uint RelationID); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
178 int CSSM_DL_Authenticate (CSSM_DL_DB_HANDLE DLDBHandle, uint AccessRequest, CSSM_ACCESS_CREDENTIALS* AccessCred); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
179 int CSSM_DL_GetDbAcl (CSSM_DL_DB_HANDLE DLDBHandle, CSSM_STRING* SelectionTag, uint* NumberOfAclInfos, CSSM_ACL_ENTRY_INFO_PTR* AclInfos); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
180 int CSSM_DL_ChangeDbAcl (CSSM_DL_DB_HANDLE DLDBHandle, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_ACL_EDIT* AclEdit); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
181 int CSSM_DL_GetDbOwner (CSSM_DL_DB_HANDLE DLDBHandle, CSSM_ACL_OWNER_PROTOTYPE_PTR Owner); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
182 int CSSM_DL_ChangeDbOwner (CSSM_DL_DB_HANDLE DLDBHandle, CSSM_ACCESS_CREDENTIALS* AccessCred, CSSM_ACL_OWNER_PROTOTYPE* NewOwner); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
183 int CSSM_DL_GetDbNames (int DLHandle, CSSM_NAME_LIST_PTR* NameList); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
184 int CSSM_DL_GetDbNameFromHandle (CSSM_DL_DB_HANDLE DLDBHandle, char** DbName); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
185 int CSSM_DL_FreeNameList (int DLHandle, CSSM_NAME_LIST_PTR NameList); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
186 int CSSM_DL_DataInsert (CSSM_DL_DB_HANDLE DLDBHandle, uint RecordType, CSSM_DB_RECORD_ATTRIBUTE_DATA* Attributes, CSSM_DATA* Data, CSSM_DB_UNIQUE_RECORD_PTR* UniqueId); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
187 int CSSM_DL_DataDelete (CSSM_DL_DB_HANDLE DLDBHandle, CSSM_DB_UNIQUE_RECORD* UniqueRecordIdentifier); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
188 int CSSM_DL_DataModify (CSSM_DL_DB_HANDLE DLDBHandle, uint RecordType, CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, CSSM_DB_RECORD_ATTRIBUTE_DATA* AttributesToBeModified, CSSM_DATA* DataToBeModified, uint ModifyMode); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
189 int CSSM_DL_DataGetFirst (CSSM_DL_DB_HANDLE DLDBHandle, CSSM_QUERY* Query, CSSM_HANDLE_PTR ResultsHandle, CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, CSSM_DATA_PTR Data, CSSM_DB_UNIQUE_RECORD_PTR* UniqueId); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
190 int CSSM_DL_DataGetNext (CSSM_DL_DB_HANDLE DLDBHandle, int ResultsHandle, CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, CSSM_DATA_PTR Data, CSSM_DB_UNIQUE_RECORD_PTR* UniqueId); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
191 int CSSM_DL_DataAbortQuery (CSSM_DL_DB_HANDLE DLDBHandle, int ResultsHandle); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
192 int CSSM_DL_DataGetFromUniqueRecordId (CSSM_DL_DB_HANDLE DLDBHandle, CSSM_DB_UNIQUE_RECORD* UniqueRecord, CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, CSSM_DATA_PTR Data); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
193 int CSSM_DL_FreeUniqueRecord (CSSM_DL_DB_HANDLE DLDBHandle, CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
194 int CSSM_DL_PassThrough (CSSM_DL_DB_HANDLE DLDBHandle, uint PassThroughId, void* InputParams, void** OutputParams); |
07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
195 } |