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 <lev@openvpn.net>
pull/469/head
Lev Stipakov 2021-11-18 15:08:28 +02:00 committed by Gert Doering
parent a9f176224f
commit 650663dd62
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@
#include <openssl/pem.h>
#include <openssl/err.h>
#include <openssl/pkcs12.h>
#if defined(_MSC_VER) && !defined(_M_ARM64)
#include <openssl/applink.c>
#endif
#endif
#include <windows.h>