From 0f1d814c2313e2b844d611625e9676d00aa404fb Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 10 Mar 2016 09:18:50 +0000 Subject: [PATCH] No need to call EVP_CIPHER_CTX_init after EVP_CIPHER_CTX_new The afalgtest was unnecessarily initing an EVP_CIPHER_CTX. It is not needed and is deprecated. Reviewed-by: Rich Salz --- test/afalgtest.c | 1 - 1 file changed, 1 deletion(-) diff --git a/test/afalgtest.c b/test/afalgtest.c index c15e111545..e1327445e2 100644 --- a/test/afalgtest.c +++ b/test/afalgtest.c @@ -82,7 +82,6 @@ static int test_afalg_aes_128_cbc(ENGINE *e) fprintf(stderr, "%s() failed to allocate ctx\n", __func__); return 0; } - EVP_CIPHER_CTX_init(ctx); RAND_bytes(in, BUFFER_SIZE); if ( !EVP_CipherInit_ex(ctx, cipher, e, key, iv, 1) -- 2.25.1