diff options
Diffstat (limited to 'ckcapi.h')
-rw-r--r-- | ckcapi.h | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -88,16 +88,22 @@ CK_RV ckcapi_winerr_to_ckr (DWORD werr); * PKCS#11 codes when the buffer is too short, or the caller * just wants to know the length, etc. */ -CK_RV ckcapi_return_data (CK_VOID_PTR dst, CK_ULONG_PTR dlen, - CK_VOID_PTR src, DWORD slen); +CK_RV ckcapi_return_data (CK_ATTRIBUTE_PTR attr, + 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); +CK_RV ckcapi_return_string (CK_ATTRIBUTE_PTR attr, + WCHAR* string); + +CK_RV ckcapi_return_dword_as_bytes (CK_ATTRIBUTE_PTR attr, + DWORD value); + +CK_RV ckcapi_return_reversed_data (CK_ATTRIBUTE_PTR attr, + CK_VOID_PTR data, CK_ULONG length); /* ------------------------------------------------------------------ */ |