From: Matt Caswell Date: Thu, 10 Mar 2016 09:18:50 +0000 (+0000) Subject: No need to call EVP_CIPHER_CTX_init after EVP_CIPHER_CTX_new X-Git-Tag: OpenSSL_1_1_0-pre4~90 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f1d814c2313e2b844d611625e9676d00aa404fb;p=oweals%2Fopenssl.git 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 --- 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)