Use the correct integer type.
Fix openssl.c:182: warning: passing argument 3 of ‘EVP_DigestFinal’ from incompatible pointer type git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4186 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
30d43413be
commit
d67f3f93f6
|
@ -173,9 +173,9 @@ static CK_RV sc_pkcs11_openssl_md_final(sc_pkcs11_operation_t *op,
|
||||||
CK_BYTE_PTR pDigest, CK_ULONG_PTR pulDigestLen)
|
CK_BYTE_PTR pDigest, CK_ULONG_PTR pulDigestLen)
|
||||||
{
|
{
|
||||||
EVP_MD_CTX *md_ctx = DIGEST_CTX(op);
|
EVP_MD_CTX *md_ctx = DIGEST_CTX(op);
|
||||||
CK_ULONG len = *pulDigestLen;
|
unsigned int len = *pulDigestLen;
|
||||||
|
|
||||||
if (len < (CK_ULONG)EVP_MD_CTX_size(md_ctx)) {
|
if (len < EVP_MD_CTX_size(md_ctx)) {
|
||||||
*pulDigestLen = EVP_MD_CTX_size(md_ctx);
|
*pulDigestLen = EVP_MD_CTX_size(md_ctx);
|
||||||
return CKR_BUFFER_TOO_SMALL;
|
return CKR_BUFFER_TOO_SMALL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue