]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix mbedtls unit tests
authorSteffan Karger <steffan.karger@fox-it.com>
Wed, 10 Oct 2018 06:44:43 +0000 (08:44 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 11 Oct 2018 14:50:45 +0000 (16:50 +0200)
commitb081038c7464f7a916560b4a71ebc83537a84b9d
tree12357b472f1c182a157dd1b4f76a2bc8fc725b9b
parent4ada4a7d8b3db7ae9722624d745c220fef4c77fd
Fix mbedtls unit tests

Commit 674b166 ("Fix build warnings related to get_random()") broke the
unit tests for mbedtls, because <mbedtls/cipher.h> was now included via
platform.c -> crypto.h -> crypto_backend.h, but the crypto cflags were
not included for that unit tests.

Since we got rid of --disable-crypto, we can now fix this by simply always
including the CRYPTO_CFLAGS in the TEST_CFLAGS (and the CRYPTO_LIBS in the
TEST_LDFLAGS). This should not only fix this occurrence, but also prevent
similar problems in the future.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1539153883-15789-1-git-send-email-steffan.karger@fox-it.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17687.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
configure.ac
tests/unit_tests/openvpn/Makefile.am