fixed 64 bit warning
[strongswan.git] / src / libstrongswan / plugins / openssl / openssl_rsa_private_key.c
index 6959130..c5d4142 100644 (file)
@@ -97,6 +97,7 @@ static bool build_emsa_pkcs1_signature(private_openssl_rsa_private_key_t *this,
                EVP_MD_CTX *ctx;
                EVP_PKEY *key;
                const EVP_MD *hasher;
+               u_int len;
 
                hasher = EVP_get_digestbynid(type);
                if (!hasher)
@@ -122,7 +123,7 @@ static bool build_emsa_pkcs1_signature(private_openssl_rsa_private_key_t *this,
                {
                        goto error;
                }
-               if (EVP_SignFinal(ctx, sig->ptr, &sig->len, key))
+               if (EVP_SignFinal(ctx, sig->ptr, &len, key))
                {
                        success = TRUE;
                }