From 63b0caff594bec8f74ff30abd84a0662a703a0fb Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Tue, 24 Jan 2023 12:35:34 +0100 Subject: [PATCH] Fixed including provider.h #2 Signed-off-by: Janos SUTO --- src/archive.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/archive.c b/src/archive.c index e3cfa9c5..a6571849 100644 --- a/src/archive.c +++ b/src/archive.c @@ -16,10 +16,8 @@ #include #include #include -#ifdef OPENSSL_VERSION_MAJOR - #if OPENSSL_VERSION_MAJOR >= 3 - #include - #endif +#if OPENSSL_VERSION_MAJOR >= 3 + #include #endif #include #include @@ -188,7 +186,9 @@ int retrieve_file_from_archive(char *filename, int mode, char **buffer, FILE *de ctx = EVP_CIPHER_CTX_new(); if(!ctx) goto CLEANUP; - OSSL_PROVIDER_load(NULL, "legacy"); + #if OPENSSL_VERSION_MAJOR >= 3 + OSSL_PROVIDER_load(NULL, "legacy"); + #endif EVP_CIPHER_CTX_init(ctx); if(strstr(filename, "/5000")){