From 3e9295546e87fd80c583af6c3cfd7448015ad33e Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 7 Aug 2021 19:55:54 -0700 Subject: [PATCH] softethervpn5: fix compilation without engines Signed-off-by: Rosen Penev --- net/softethervpn5/patches/010-engines.patch | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 net/softethervpn5/patches/010-engines.patch diff --git a/net/softethervpn5/patches/010-engines.patch b/net/softethervpn5/patches/010-engines.patch new file mode 100644 index 0000000000..89898b5f75 --- /dev/null +++ b/net/softethervpn5/patches/010-engines.patch @@ -0,0 +1,30 @@ +From ee3bf7f5079bcad51cc89197b6a9e34da746fc7e Mon Sep 17 00:00:00 2001 +From: Rosen Penev +Date: Sat, 7 Aug 2021 20:05:04 -0700 +Subject: [PATCH] fix compilation without OpenSSL engines + +Signed-off-by: Rosen Penev +--- + src/Mayaqua/Encrypt.c | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/src/Mayaqua/Encrypt.c ++++ b/src/Mayaqua/Encrypt.c +@@ -3128,6 +3128,7 @@ bool IsEncryptedK(BUF *b, bool private_k + + 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, + k->pkey = pkey; + k->private_key = true; + return k; ++#else ++ return NULL; ++#endif + } + + // Convert the BUF to a K -- 2.30.2