]> git.ipfire.org Git - thirdparty/openvpn.git/commit - src/openvpn/route.c
Use correct types for OpenSSL and Windows APIs
authorArne Schwabe <arne@rfc2549.org>
Wed, 24 Mar 2021 22:23:30 +0000 (23:23 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 25 Mar 2021 11:32:46 +0000 (12:32 +0100)
commit467b16dc65df711c0f1b3a8640b1fadc09c56803
treef1606d9c14c69b3d6eb9f9f705586afc6bc51900
parente756e12adb33e93f712281361ae61a1522d3df93
Use correct types for OpenSSL and Windows APIs

The error code of OpenSSL is a long. On most Unics systems
(mac, Linux...) this happens to be the same as size_t. But on Windows
as LP64, long is a 32 bit type and size_t is a 64 bit type. So use the
same type as OpenSSL.

When calling the Windows API use DWORD for the functions that want a
DWORD.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20210324222330.455-4-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21803.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/crypto_openssl.c
src/openvpn/cryptoapi.c
src/openvpn/route.c