diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2019-02-27 14:10:48 -0800 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2019-02-27 14:10:48 -0800 |
commit | 3b4c749daa79335d6534a620a3b5ad96262d0245 (patch) | |
tree | 61b31b87b0ac51805a7e020a2016e6e9384870d9 | |
parent | b04c2e7f521314d2f4d29eb9c4de9d9543173b58 (diff) | |
download | openssl-pkcs11-export-3b4c749daa79335d6534a620a3b5ad96262d0245.tar.gz |
pkcs11: Fill in missing C_ functions
It turns out Mozilla nss is keen on C_CreateObject, which is currently
NULL, so identify all the other NULL C_ functions and fill them in
with the unimplemented message.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rw-r--r-- | pkcs11.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -564,6 +564,9 @@ static CK_RV U_##X(void) \ #define U(X) \ .X = (CK_##X)U_##X +F(C_CancelFunction) +F(C_CopyObject) +F(C_CreateObject) F(C_DecryptDigestUpdate) F(C_DecryptFinal) F(C_DecryptUpdate) @@ -587,7 +590,9 @@ F(C_GetFunctionStatus) F(C_GetObjectSize) F(C_GetOperationState) F(C_InitPIN) +F(C_InitToken) F(C_SeedRandom) +F(C_SetAttributeValue) F(C_SetOperationState) F(C_SetPIN) F(C_SignEncryptUpdate) @@ -602,6 +607,7 @@ F(C_VerifyInit) F(C_VerifyRecover) F(C_VerifyRecoverInit) F(C_VerifyUpdate) +F(C_WaitForSlotEvent) F(C_WrapKey) static CK_FUNCTION_LIST module_functions = { @@ -632,6 +638,9 @@ static CK_FUNCTION_LIST module_functions = { .C_Sign = C_Sign, .C_DecryptInit = C_DecryptInit, .C_Decrypt = C_Decrypt, + U(C_CancelFunction), + U(C_CopyObject), + U(C_CreateObject), U(C_DecryptDigestUpdate), U(C_DecryptFinal), U(C_DecryptUpdate), @@ -655,7 +664,9 @@ static CK_FUNCTION_LIST module_functions = { U(C_GetObjectSize), U(C_GetOperationState), U(C_InitPIN), + U(C_InitToken), U(C_SeedRandom), + U(C_SetAttributeValue), U(C_SetOperationState), U(C_SetPIN), U(C_SignEncryptUpdate), @@ -670,5 +681,6 @@ static CK_FUNCTION_LIST module_functions = { U(C_VerifyRecover), U(C_VerifyRecoverInit), U(C_VerifyUpdate), + U(C_WaitForSlotEvent), U(C_WrapKey), }; |