]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add test_ssl unit test and test export of PEM to file
authorArne Schwabe <arne@rfc2549.org>
Tue, 16 Jan 2024 21:41:52 +0000 (22:41 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 16 Jan 2024 21:44:47 +0000 (22:44 +0100)
commitcedbac710c4f6a3c5ecca5487c491f009e2b7775
tree9be2e33b85ae0aa068855ed4d05513a39bc8999c
parent0ce06893912830fa2044c5d6a62e6333366afd4a
Add test_ssl unit test and test export of PEM to file

This introduces a number of mock function to be able to compile
ssl_verify_*.c and ssl_mbedtls.c/ssl_openssl.c into a unit and adds
quite a number of files to that unit. But it allows similar unit tests
(in term of dependencies) to be added in the future.

Change-Id: Ie248d35d063bb6878f3dd42840c77ba0d6fa3381
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20240116214152.27316-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28028.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
.github/workflows/build.yaml
CMakeLists.txt
tests/unit_tests/openvpn/Makefile.am
tests/unit_tests/openvpn/mock_management.c [new file with mode: 0644]
tests/unit_tests/openvpn/mock_ssl_dependencies.c [new file with mode: 0644]
tests/unit_tests/openvpn/test_ssl.c [new file with mode: 0644]