Fix signed/unsigned warning

This commit is contained in:
Christian Hohnstaedt 2014-11-03 08:16:51 +01:00
parent 75861d275b
commit 6927dc1b0c

View File

@ -804,7 +804,7 @@ static int eng_pmeth_sign_rsa(EVP_PKEY_CTX *ctx,
if (EVP_PKEY_type(pkey->type) != EVP_PKEY_RSA)
return -1;
if (x509_len > (RSA_size(pkey->pkey.rsa) - RSA_PKCS1_PADDING_SIZE))
if ((int)x509_len > (RSA_size(pkey->pkey.rsa) - RSA_PKCS1_PADDING_SIZE))
return -1;
pkcs11 *p11 = (pkcs11 *)ENGINE_get_ex_data(pkey->engine, eng_idx);