mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-26 01:59:53 +03:00
fix compilation without OpenSSL engines
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
5a05e7a249
commit
ee3bf7f507
@ -3128,6 +3128,7 @@ bool IsEncryptedK(BUF *b, bool private_key)
|
||||
|
||||
K *OpensslEngineToK(char *key_file_name, char *engine_name)
|
||||
{
|
||||
#ifndef OPENSSL_NO_ENGINE
|
||||
K *k;
|
||||
#if OPENSSL_API_COMPAT < 0x10100000L
|
||||
ENGINE_load_dynamic();
|
||||
@ -3140,6 +3141,9 @@ K *OpensslEngineToK(char *key_file_name, char *engine_name)
|
||||
k->pkey = pkey;
|
||||
k->private_key = true;
|
||||
return k;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
// Convert the BUF to a K
|
||||
|
Loading…
Reference in New Issue
Block a user