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:
ludovic.rousseau 2010-03-29 14:34:02 +00:00
parent 30d43413be
commit d67f3f93f6
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{
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);
return CKR_BUFFER_TOO_SMALL;
}