mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 18:20:12 +01:00
Fixed retrieving emails archived with legacy openssl 1.x
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
e2f6a71827
commit
4f948d3d5c
@ -192,6 +192,7 @@ int retrieve_file_from_archive(char *filename, int mode, char **buffer, FILE *de
|
|||||||
} else {
|
} else {
|
||||||
#if OPENSSL_VERSION_MAJOR >= 3
|
#if OPENSSL_VERSION_MAJOR >= 3
|
||||||
OSSL_PROVIDER_load(NULL, "legacy");
|
OSSL_PROVIDER_load(NULL, "legacy");
|
||||||
|
OSSL_PROVIDER_load(NULL, "default");
|
||||||
#endif
|
#endif
|
||||||
rc = EVP_DecryptInit_ex(ctx, EVP_bf_cbc(), NULL, cfg->key, cfg->iv);
|
rc = EVP_DecryptInit_ex(ctx, EVP_bf_cbc(), NULL, cfg->key, cfg->iv);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user