[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: pkcs11.h build errors
Hi,just wanted to report some build errors with pkcs11 header files in case you are not already aware of them:
(1) In file included from include/pkcs11.h:149:0 include/pkcs11t.h:2383:4: error: unknown type name 'CK_BOOL' CK_BOOL bExtract; // should be CK_BBOOL ? ^ include/pkcs11t.h:2384:4: error: unknown type name 'CK_BOOL' CK_BOOL bExpand; // should be CK_BBOOL ? ^ include/pkcs11t.h:2389:4: error: unknown type name 'CK_HANDLE' CK_HANDLE hSaltKey; // couldnt find definition ^ (2) error: conflicting types for 'C_EncryptMessageNext' error: conflicting types for 'C_DecryptMessageNext' Those functions' signatures are differ in header file and spec. pkcs11f.h: CK_PKCS11_FUNCTION_INFO(C_EncryptMessageNext) ( CK_SESSION_HANDLE hSession, CK_VOID_PTR pParameter, CK_ULONG ulParameterLen, CK_BYTE_PTR pPlaintextPart, CK_ULONG ulPlaintextPartLen, CK_BYTE_PTR pCiphertextPart, CK_ULONG_PTR pulCiphertextPartLen, CK_FLAGS flags ); CK_PKCS11_FUNCTION_INFO(C_DecryptMessageNext) ( CK_SESSION_HANDLE hSession, CK_VOID_PTR pParameter, CK_ULONG ulParameterLen, CK_BYTE_PTR pCiphertext, CK_ULONG ulCiphertextLen, CK_BYTE_PTR pPlaintext, CK_ULONG_PTR pulPlaintextLen, CK_FLAGS flags ); https://docs.oasis-open.org/pkcs11/pkcs11-base/v3.0/pkcs11-base-v3.0.docx : CK_DECLARE_FUNCTION(CK_RV, C_EncryptMessageNext)( CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPlaintextPart, CK_ULONG ulPlaintextPartLen, CK_BYTE_PTR pCiphertextPart, CK_ULONG_PTR pulCiphertextPartLen, CK_ULONG flags ); CK_DECLARE_FUNCTION(CK_RV, C_DecryptMessageNext)( CK_SESSION_HANDLE hSession, CK_BYTE_PTR pCiphertextPart, CK_ULONG ulCiphertextPartLen, CK_BYTE_PTR pPlaintextPart, CK_ULONG_PTR pulPlaintextPartLen, CK_FLAGS flags ); Header files obtained from https://docs.oasis-open.org/pkcs11/pkcs11-base/v3.0/csprd01/include/pkcs11-v3.0/ Best regards Patrick
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]