diff options
author | Rob Austein <sra@hactrn.net> | 2015-09-11 15:44:30 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-09-11 15:44:30 -0400 |
commit | 04cb1eb4b963fab3d87f6d3f128c5fe745fd3963 (patch) | |
tree | 23567930cf40e693108d3758c2a541cff12baf6c | |
parent | 1086cc3324dacc5d6a5bdb11ada2f4597d4f68a4 (diff) |
Fix size_t vs CK_ULONG type mismatch (platform dependent).
-rw-r--r-- | pkcs11.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2405,10 +2405,12 @@ static CK_RV sign_ecdsa(p11_session_t *session, } if (pSignature != NULL && !hal_check(hal_ecdsa_sign(key, pData, ulDataLen, - pSignature, pulSignatureLen, *pulSignatureLen, + pSignature, &signature_len, *pulSignatureLen, HAL_ECDSA_SIGNATURE_FORMAT_PKCS11))) lose(CKR_FUNCTION_FAILED); + assert(signature_len == *pulSignatureLen); + rv = CKR_OK; /* Fall through */ fail: |