From dec532a8ebd3c98529695ee5bd358a97a46cb6bc Mon Sep 17 00:00:00 2001 From: mcallist Date: Fri, 9 Oct 2020 03:32:53 +0200 Subject: [PATCH] Increase required openssl version for openssl engines implementation --- src/Mayaqua/Encrypt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mayaqua/Encrypt.c b/src/Mayaqua/Encrypt.c index 27403a6c..8bb91ccf 100644 --- a/src/Mayaqua/Encrypt.c +++ b/src/Mayaqua/Encrypt.c @@ -3115,6 +3115,7 @@ bool IsEncryptedK(BUF *b, bool private_key) K *OpensslEngineToK(char *key_file_name, char *engine_name) { #ifdef UNIX_LINUX +#if OPENSSL_VERSION_NUMBER >= 0x10100000L K *k; ENGINE_load_dynamic(); ENGINE *engine = ENGINE_by_id("tpm2tss"); @@ -3125,6 +3126,7 @@ K *OpensslEngineToK(char *key_file_name, char *engine_name) k->pkey = pkey; k->private_key = true; return k; +#endif // OPENSSL VERSION #else return NULL; #endif // UNIX_LINUX