]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ovpn: allow compiling ovpn-cli.c with mbedtls3
authorAntonio Quartulli <antonio@openvpn.net>
Tue, 11 Nov 2025 21:34:51 +0000 (22:34 +0100)
committerAntonio Quartulli <antonio@openvpn.net>
Tue, 17 Mar 2026 10:08:54 +0000 (11:08 +0100)
commita8e136b496259e689942d295d06cc4e517418cc4
tree9a29f0bda80d28a548806555f1d5d0e2fb4fc459
parentfebe8012458fd9057d3fb70f6b37ef67a07ff8a1
selftests: ovpn: allow compiling ovpn-cli.c with mbedtls3

mbedtls 3 installs headers and calls the shared object
differently than version 2, therefore we must now rely
on pkgconfig to fill the right C/LDFLAGS.

Moreover the mbedtls3 library expects any base64 file to
have their content on one line.
Since this change does no break older versions,
let's change the sample key file format and make mbedtls3
happy.

Cc: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Cc: horms@kernel.org
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
tools/testing/selftests/net/ovpn/Makefile
tools/testing/selftests/net/ovpn/data64.key