mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:10:13 +01:00
Fixed including provider.h
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
955b9bd7b6
commit
e0c986e184
@ -16,6 +16,11 @@
|
|||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#include <openssl/blowfish.h>
|
#include <openssl/blowfish.h>
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
|
#ifdef OPENSSL_VERSION_MAJOR
|
||||||
|
#if OPENSSL_VERSION_MAJOR >= 3
|
||||||
|
#include <openssl/provider.h>
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <piler.h>
|
#include <piler.h>
|
||||||
@ -183,7 +188,6 @@ int retrieve_file_from_archive(char *filename, int mode, char **buffer, FILE *de
|
|||||||
ctx = EVP_CIPHER_CTX_new();
|
ctx = EVP_CIPHER_CTX_new();
|
||||||
if(!ctx) goto CLEANUP;
|
if(!ctx) goto CLEANUP;
|
||||||
|
|
||||||
#include <openssl/provider.h>
|
|
||||||
OSSL_PROVIDER_load(NULL, "legacy");
|
OSSL_PROVIDER_load(NULL, "legacy");
|
||||||
|
|
||||||
EVP_CIPHER_CTX_init(ctx);
|
EVP_CIPHER_CTX_init(ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user