![Matt Weber](/assets/img/avatar_default.png)
Changes adapt the current codebase to use supported APIs now that openssl 1.1.x by default disables all deprecated items. Fixes http://autobuild.buildroot.net/results/97d/97dab568f1f3d342b6bfcb9f597ced4de6f1309e Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
41 lines
1.4 KiB
Diff
41 lines
1.4 KiB
Diff
From ccc85e4fd67423e770901ec59975e84b07eed883 Mon Sep 17 00:00:00 2001
|
|
From: Zdenek Styblik <stybla@turnovfree.net>
|
|
Date: Sun, 15 Jan 2017 15:11:25 +0100
|
|
Subject: [PATCH] ID:461 - Make compiler happier about changes related to
|
|
OpenSSL 1.1
|
|
|
|
Complaint was that ctx isn't initialized.
|
|
|
|
Upstream: https://github.com/ipmitool/ipmitool/commit/77fe5635037ebaf411cae46cf5045ca819b5c145
|
|
|
|
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
|
|
---
|
|
src/plugins/lanplus/lanplus_crypt_impl.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/plugins/lanplus/lanplus_crypt_impl.c b/src/plugins/lanplus/lanplus_crypt_impl.c
|
|
index 3c0df23..d12d0e3 100644
|
|
--- a/src/plugins/lanplus/lanplus_crypt_impl.c
|
|
+++ b/src/plugins/lanplus/lanplus_crypt_impl.c
|
|
@@ -164,7 +164,7 @@ lanplus_encrypt_aes_cbc_128(const uint8_t * iv,
|
|
uint8_t * output,
|
|
uint32_t * bytes_written)
|
|
{
|
|
- EVP_CIPHER_CTX* ctx;
|
|
+ EVP_CIPHER_CTX *ctx = NULL;
|
|
EVP_CIPHER_CTX_init(ctx);
|
|
EVP_EncryptInit_ex(ctx, EVP_aes_128_cbc(), NULL, key, iv);
|
|
EVP_CIPHER_CTX_set_padding(ctx, 0);
|
|
@@ -239,7 +239,7 @@ lanplus_decrypt_aes_cbc_128(const uint8_t * iv,
|
|
uint8_t * output,
|
|
uint32_t * bytes_written)
|
|
{
|
|
- EVP_CIPHER_CTX* ctx;
|
|
+ EVP_CIPHER_CTX *ctx = NULL;
|
|
EVP_CIPHER_CTX_init(ctx);
|
|
EVP_DecryptInit_ex(ctx, EVP_aes_128_cbc(), NULL, key, iv);
|
|
EVP_CIPHER_CTX_set_padding(ctx, 0);
|
|
--
|
|
1.9.1
|
|
|