summaryrefslogtreecommitdiffstats
path: root/libmemcached-awesome-aes.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-06-25 15:03:53 +0200
committerRemi Collet <remi@remirepo.net>2021-06-25 15:03:53 +0200
commitdfe4b46269c4f622aeeebf3c88e30c6c81201c8f (patch)
treea968ffef42b7519c40251e130569bd98ac8a6515 /libmemcached-awesome-aes.patch
parent0a84c5de76df92641923a6bb308c662758e40688 (diff)
more fix
Diffstat (limited to 'libmemcached-awesome-aes.patch')
-rw-r--r--libmemcached-awesome-aes.patch19
1 files changed, 19 insertions, 0 deletions
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;