]> git.ipfire.org Git - thirdparty/openvpn.git/commit
crypto.c: fix Visual Studio build
authorLev Stipakov <lev@openvpn.net>
Thu, 18 Jul 2019 09:35:03 +0000 (12:35 +0300)
committerGert Doering <gert@greenie.muc.de>
Sun, 28 Jul 2019 20:07:31 +0000 (22:07 +0200)
commit2df27b2fa3932372075afd0db6b706a38e0a9dc3
tree0091c748c8b03c9f87f37875f9fdb19daece6489
parentf4ac6b780db2e0c3b60d180bd6545efe30a52059
crypto.c: fix Visual Studio build

Commit fb4e8ab added variable-length array which
is C99 feature and is not supported by Visual Studio.

This removes VLA and writes data directly into passed buffer.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1563442503-11119-1-git-send-email-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18676.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/crypto.c