From: Dr. Stephen Henson Date: Wed, 24 Feb 2010 15:24:19 +0000 (+0000) Subject: prevent warning X-Git-Tag: OpenSSL-fips-2_0-rc1~1256 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=385a488c4313011ee7cf665d203af3f718a2a854;p=openssl prevent warning --- 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; }