]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix loading PKCS12 files on Windows
authorLev Stipakov <lev@openvpn.net>
Wed, 6 Oct 2021 09:07:09 +0000 (12:07 +0300)
committerGert Doering <gert@greenie.muc.de>
Wed, 6 Oct 2021 09:50:37 +0000 (11:50 +0200)
commitf397c3bfe728e0163fe6d226f62874e1dd25ec60
treef370e7fb13837ff62e32aa1a5bbadf87726cee6b
parent3f7a85b9aebe7be0d85e14805f269a8ad330def5
Fix loading PKCS12 files on Windows

Starting from 2.5.4 we have switched to MSVC builds,
including dependencies such as OpenSSL.

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
when calling, for example, d2i_PKCS12_fp(), which we do when
loading PKCS12 files.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20211006090709.200-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22920.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit af5de933a0633436e0fe00c42464f4a7ab5ac509)
src/openvpn/ssl_openssl.c