From 4f948d3d5c584d8fe3c848a56f1fc0021340872b Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Fri, 3 Nov 2023 13:47:15 +0100 Subject: [PATCH] Fixed retrieving emails archived with legacy openssl 1.x Signed-off-by: Janos SUTO --- src/archive.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/archive.c b/src/archive.c index 13017dd6..95c8db07 100644 --- a/src/archive.c +++ b/src/archive.c @@ -192,6 +192,7 @@ int retrieve_file_from_archive(char *filename, int mode, char **buffer, FILE *de } else { #if OPENSSL_VERSION_MAJOR >= 3 OSSL_PROVIDER_load(NULL, "legacy"); + OSSL_PROVIDER_load(NULL, "default"); #endif rc = EVP_DecryptInit_ex(ctx, EVP_bf_cbc(), NULL, cfg->key, cfg->iv); }