summaryrefslogtreecommitdiff
path: root/ckcapi.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-12-02 20:49:19 +0000
committerStef Walter <stef@memberwebs.com>2008-12-02 20:49:19 +0000
commitc92e343c53743180c8854cb10da8bf522dd43d76 (patch)
tree3eb5527afeab8ef34cc3319cd8928c12614e8f65 /ckcapi.h
parente7d5c6b4b04bb34172788fba5532b89e70a1f5ac (diff)
Load certificates by key ID if finding by CKA_ID. Use standard function for returning a string.
Diffstat (limited to 'ckcapi.h')
-rw-r--r--ckcapi.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ckcapi.h b/ckcapi.h
index 5283cc4..707d7f8 100644
--- a/ckcapi.h
+++ b/ckcapi.h
@@ -91,6 +91,13 @@ CK_RV ckcapi_winerr_to_ckr (DWORD werr);
CK_RV ckcapi_return_data (CK_VOID_PTR dst, CK_ULONG_PTR dlen,
CK_VOID_PTR src, DWORD slen);
+/*
+ * This stores a string in the output buffer with appropriate
+ * PKCS#11 codes when the buffer is too short, or the caller
+ * just wants to know the length, etc.
+ */
+CK_RV ckcapi_return_string (CK_VOID_PTR dst, CK_ULONG_PTR dlen,
+ WCHAR* string);
/* ------------------------------------------------------------------ */