]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add unit tests for engine keys
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 22 Jun 2020 23:23:19 +0000 (16:23 -0700)
committerGert Doering <gert@greenie.muc.de>
Tue, 23 Jun 2020 06:16:35 +0000 (08:16 +0200)
commit542c69c37b347d1895dde076508d0f6554544860
tree513fb655d616ba0af1880041127eb3c71eb8dd18
parent933b4ab808891805232f599507fded916b284a43
Add unit tests for engine keys

Testing engines is problematic, so one of the prerequisites built for
the tests is a simple openssl engine that reads a non-standard PEM
guarded key.  The test is simply can we run a client/server
configuration with the usual sample key replaced by an engine key.
The trivial engine prints out some operations and we check for these
in the log to make sure the engine was used to load the key and that
it correctly got the password.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20200622232319.8143-2-James.Bottomley@HansenPartnership.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20075.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
configure.ac
tests/unit_tests/Makefile.am
tests/unit_tests/engine-key/Makefile.am [new file with mode: 0644]
tests/unit_tests/engine-key/check_engine_keys.sh [new file with mode: 0755]
tests/unit_tests/engine-key/libtestengine.c [new file with mode: 0644]
tests/unit_tests/engine-key/openssl.cnf.in [new file with mode: 0644]