From dfe4b46269c4f622aeeebf3c88e30c6c81201c8f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 25 Jun 2021 15:03:53 +0200 Subject: more fix --- libmemcached-awesome-aes.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'libmemcached-awesome-aes.patch') diff --git a/libmemcached-awesome-aes.patch b/libmemcached-awesome-aes.patch index f7636a8..bf0e84a 100644 --- a/libmemcached-awesome-aes.patch +++ b/libmemcached-awesome-aes.patch @@ -1436,3 +1436,22 @@ index d73b54e7..77414110 100644 #define memcached_is_initialized(__object) ((__object)->options.is_initialized) #define memcached_is_purging(__object) ((__object)->state.is_purging) #define memcached_is_processing_input(__object) ((__object)->state.is_processing_input) + + +diff -up ./src/libhashkit/aes.cc.old ./src/libhashkit/aes.cc +--- ./src/libhashkit/aes.cc.old 2021-06-25 14:53:38.891064258 +0200 ++++ ./src/libhashkit/aes.cc 2021-06-25 14:53:45.840043166 +0200 +@@ -37,10 +37,10 @@ bool aes_initialize(const unsigned char + return false; + } + +- if (EVP_CIPHER_CTX_init(encryption_context) != 1 || +- EVP_EncryptInit_ex(encryption_context, EVP_aes_256_cbc(), NULL, key, ++ EVP_CIPHER_CTX_init(encryption_context); ++ EVP_CIPHER_CTX_init(decryption_context); ++ if (EVP_EncryptInit_ex(encryption_context, EVP_aes_256_cbc(), NULL, key, + aes_iv) != 1 || +- EVP_CIPHER_CTX_init(decryption_context) != 1 || + EVP_DecryptInit_ex(decryption_context, EVP_aes_256_cbc(), NULL, key, + aes_iv) != 1) { + return false; -- cgit