fixed 64 bit warning

This commit is contained in:
Andreas Steffen
2009-06-17 12:32:28 +02:00
parent 8ae89883e1
commit 942127a602
@@ -97,6 +97,7 @@ static bool build_emsa_pkcs1_signature(private_openssl_rsa_private_key_t *this,
EVP_MD_CTX *ctx; EVP_MD_CTX *ctx;
EVP_PKEY *key; EVP_PKEY *key;
const EVP_MD *hasher; const EVP_MD *hasher;
u_int len;
hasher = EVP_get_digestbynid(type); hasher = EVP_get_digestbynid(type);
if (!hasher) if (!hasher)
@@ -122,7 +123,7 @@ static bool build_emsa_pkcs1_signature(private_openssl_rsa_private_key_t *this,
{ {
goto error; goto error;
} }
if (EVP_SignFinal(ctx, sig->ptr, &sig->len, key)) if (EVP_SignFinal(ctx, sig->ptr, &len, key))
{ {
success = TRUE; success = TRUE;
} }