summaryrefslogtreecommitdiff
path: root/ckcapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'ckcapi.h')
-rw-r--r--ckcapi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ckcapi.h b/ckcapi.h
index 18f304f..54929bc 100644
--- a/ckcapi.h
+++ b/ckcapi.h
@@ -91,6 +91,9 @@ CK_RV ckcapi_winerr_to_ckr (DWORD werr);
CK_RV ckcapi_return_data (CK_ATTRIBUTE_PTR attr,
CK_VOID_PTR src, DWORD slen);
+CK_RV ckcapi_return_data_raw (CK_VOID_PTR output, CK_ULONG_PTR n_output,
+ CK_VOID_PTR input, CK_ULONG n_input);
+
/*
* This stores a string in the output buffer with appropriate
* PKCS#11 codes when the buffer is too short, or the caller
@@ -107,6 +110,8 @@ CK_RV ckcapi_return_reversed_data (CK_ATTRIBUTE_PTR attr,
/* ------------------------------------------------------------------ */
+typedef void (*CkCapiDestroyFunc)(void* data);
+
#ifndef ASSERT
#include "assert.h"
#define ASSERT assert