From 36090bb286115191a8b6bf3e29048abd8bbb13b4 Mon Sep 17 00:00:00 2001 From: Lev Stipakov Date: Thu, 18 Nov 2021 15:08:28 +0200 Subject: [PATCH] Fix broken "change password" functionality When we link with natively-built OpenSSL .DLLs (not cross compiled with MinGW), we are expected to include applink.c, which provides glue between OpenSSL BIO layer and compiler run-time. This doesn't apply to ARM64. Failure to do that results in "no OPENSSL_Applink" fatal error during password change. See the corresponding fix in openvpn2: https://sourceforge.net/p/openvpn/mailman/message/37361982/ Signed-off-by: Lev Stipakov --- passphrase.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/passphrase.c b/passphrase.c index 05a0b1f..d5e3984 100644 --- a/passphrase.c +++ b/passphrase.c @@ -28,6 +28,11 @@ #include #include #include + +#if defined(_MSC_VER) && !defined(_M_ARM64) +#include +#endif + #endif #include