From 385a488c4313011ee7cf665d203af3f718a2a854 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 24 Feb 2010 15:24:19 +0000 Subject: [PATCH] prevent warning --- crypto/evp/e_aes.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c index afc802b03a..eacc306fb4 100644 --- a/crypto/evp/e_aes.c +++ b/crypto/evp/e_aes.c @@ -99,9 +99,11 @@ IMPLEMENT_AES_CFBR(256,8) static int aes_counter (EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) { + unsigned int num; AES_ctr128_encrypt (in,out,len, &((EVP_AES_KEY *)ctx->cipher_data)->ks, - ctx->iv,ctx->buf,&ctx->num); + ctx->iv,ctx->buf,&num); + ctx->num = (size_t)num; return 1; } -- 2.40.0