diff --git a/src/archive.c b/src/archive.c index 7e2e2ccb..e3cfa9c5 100644 --- a/src/archive.c +++ b/src/archive.c @@ -16,6 +16,11 @@ #include #include #include +#ifdef OPENSSL_VERSION_MAJOR + #if OPENSSL_VERSION_MAJOR >= 3 + #include + #endif +#endif #include #include #include @@ -183,7 +188,6 @@ int retrieve_file_from_archive(char *filename, int mode, char **buffer, FILE *de ctx = EVP_CIPHER_CTX_new(); if(!ctx) goto CLEANUP; - #include OSSL_PROVIDER_load(NULL, "legacy"); EVP_CIPHER_CTX_init(ctx);