mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Change openssl version checking to api compat
This commit is contained in:
parent
dec532a8eb
commit
20b84f3928
@ -3115,7 +3115,7 @@ bool IsEncryptedK(BUF *b, bool private_key)
|
|||||||
K *OpensslEngineToK(char *key_file_name, char *engine_name)
|
K *OpensslEngineToK(char *key_file_name, char *engine_name)
|
||||||
{
|
{
|
||||||
#ifdef UNIX_LINUX
|
#ifdef UNIX_LINUX
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
#if OPENSSL_API_COMPAT < 0x10100000L
|
||||||
K *k;
|
K *k;
|
||||||
ENGINE_load_dynamic();
|
ENGINE_load_dynamic();
|
||||||
ENGINE *engine = ENGINE_by_id("tpm2tss");
|
ENGINE *engine = ENGINE_by_id("tpm2tss");
|
||||||
@ -3126,7 +3126,7 @@ K *OpensslEngineToK(char *key_file_name, char *engine_name)
|
|||||||
k->pkey = pkey;
|
k->pkey = pkey;
|
||||||
k->private_key = true;
|
k->private_key = true;
|
||||||
return k;
|
return k;
|
||||||
#endif // OPENSSL VERSION
|
#endif // OPENSSL_API_COMPAT >= 0x10100000L
|
||||||
#else
|
#else
|
||||||
return NULL;
|
return NULL;
|
||||||
#endif // UNIX_LINUX
|
#endif // UNIX_LINUX
|
||||||
|
Loading…
Reference in New Issue
Block a user