]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix declaration of pubkeys in test_provider.c in MSVC builds
authorArne Schwabe <arne@rfc2549.org>
Wed, 24 Aug 2022 16:57:18 +0000 (18:57 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 25 Aug 2022 20:45:25 +0000 (22:45 +0200)
commit7286a7e1a23146607ce94841afae8b1f4b75859e
treec44edf0c3eee1e05daa574d669675e6b6334e232
parentfb06c9f026a78b879f264ab8e67de09d725b5540
Fix declaration of pubkeys in test_provider.c in MSVC builds

  Error: test_provider.c(74): error C2099: initializer is not a constant

Fix this issue by making the const char* to const char[]. This is probably
of one the weird array decay corner cases

I could not find another/better way around this issue.

This error only occurs when building unit tests with windows which our
normal build system does not do but my out of tree cmake build script
tries and fails.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20220824165718.102002-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25102.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/unit_tests/openvpn/test_provider.c