mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID:461 - Make compiler happier about changes related to OpenSSL 1.1
Complaint was that ctx isn't initialized.
This commit is contained in:
parent
7b102293e8
commit
77fe563503
@ -164,7 +164,7 @@ lanplus_encrypt_aes_cbc_128(const uint8_t * iv,
|
|||||||
uint8_t * output,
|
uint8_t * output,
|
||||||
uint32_t * bytes_written)
|
uint32_t * bytes_written)
|
||||||
{
|
{
|
||||||
EVP_CIPHER_CTX* ctx;
|
EVP_CIPHER_CTX *ctx = NULL;
|
||||||
EVP_CIPHER_CTX_init(ctx);
|
EVP_CIPHER_CTX_init(ctx);
|
||||||
EVP_EncryptInit_ex(ctx, EVP_aes_128_cbc(), NULL, key, iv);
|
EVP_EncryptInit_ex(ctx, EVP_aes_128_cbc(), NULL, key, iv);
|
||||||
EVP_CIPHER_CTX_set_padding(ctx, 0);
|
EVP_CIPHER_CTX_set_padding(ctx, 0);
|
||||||
@ -239,7 +239,7 @@ lanplus_decrypt_aes_cbc_128(const uint8_t * iv,
|
|||||||
uint8_t * output,
|
uint8_t * output,
|
||||||
uint32_t * bytes_written)
|
uint32_t * bytes_written)
|
||||||
{
|
{
|
||||||
EVP_CIPHER_CTX* ctx;
|
EVP_CIPHER_CTX *ctx = NULL;
|
||||||
EVP_CIPHER_CTX_init(ctx);
|
EVP_CIPHER_CTX_init(ctx);
|
||||||
EVP_DecryptInit_ex(ctx, EVP_aes_128_cbc(), NULL, key, iv);
|
EVP_DecryptInit_ex(ctx, EVP_aes_128_cbc(), NULL, key, iv);
|
||||||
EVP_CIPHER_CTX_set_padding(ctx, 0);
|
EVP_CIPHER_CTX_set_padding(ctx, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user