From 6927dc1b0cae2cba891e75ff8bfa21e400eae384 Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Mon, 3 Nov 2014 08:16:51 +0100 Subject: [PATCH] Fix signed/unsigned warning --- lib/pkcs11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pkcs11.cpp b/lib/pkcs11.cpp index c3e86f98..33b821b3 100644 --- a/lib/pkcs11.cpp +++ b/lib/pkcs11.cpp @@ -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);