1From ccc85e4fd67423e770901ec59975e84b07eed883 Mon Sep 17 00:00:00 2001 2From: Zdenek Styblik <stybla@turnovfree.net> 3Date: Sun, 15 Jan 2017 15:11:25 +0100 4Subject: [PATCH] ID:461 - Make compiler happier about changes related to 5 OpenSSL 1.1 6 7Complaint was that ctx isn't initialized. 8 9Upstream: https://github.com/ipmitool/ipmitool/commit/77fe5635037ebaf411cae46cf5045ca819b5c145 10 11Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> 12--- 13 src/plugins/lanplus/lanplus_crypt_impl.c | 4 ++-- 14 1 file changed, 2 insertions(+), 2 deletions(-) 15 16diff --git a/src/plugins/lanplus/lanplus_crypt_impl.c b/src/plugins/lanplus/lanplus_crypt_impl.c 17index 3c0df23..d12d0e3 100644 18--- a/src/plugins/lanplus/lanplus_crypt_impl.c 19+++ b/src/plugins/lanplus/lanplus_crypt_impl.c 20@@ -164,7 +164,7 @@ lanplus_encrypt_aes_cbc_128(const uint8_t * iv, 21 uint8_t * output, 22 uint32_t * bytes_written) 23 { 24- EVP_CIPHER_CTX* ctx; 25+ EVP_CIPHER_CTX *ctx = NULL; 26 EVP_CIPHER_CTX_init(ctx); 27 EVP_EncryptInit_ex(ctx, EVP_aes_128_cbc(), NULL, key, iv); 28 EVP_CIPHER_CTX_set_padding(ctx, 0); 29@@ -239,7 +239,7 @@ lanplus_decrypt_aes_cbc_128(const uint8_t * iv, 30 uint8_t * output, 31 uint32_t * bytes_written) 32 { 33- EVP_CIPHER_CTX* ctx; 34+ EVP_CIPHER_CTX *ctx = NULL; 35 EVP_CIPHER_CTX_init(ctx); 36 EVP_DecryptInit_ex(ctx, EVP_aes_128_cbc(), NULL, key, iv); 37 EVP_CIPHER_CTX_set_padding(ctx, 0); 38-- 391.9.1 40 41