]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
check_engine_keys: make pass with OpenSSL 3
authorFrank Lichtenheld <frank@lichtenheld.com>
Tue, 10 Jan 2023 17:02:57 +0000 (18:02 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 11 Jan 2023 12:54:27 +0000 (13:54 +0100)
Not enabled by default with OpenSSL 3, so we don't
see this in our builds.
While here add missing entries to .gitignore (which
is what made me look at engine-key test in the first
place).

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20230110170257.113527-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25949.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
.gitignore
tests/unit_tests/engine-key/check_engine_keys.sh

index 7335154ff40b77968270686c7f2527fc3ba5adbb..813413feca3b9767820de62beeb67893b38fa506 100644 (file)
@@ -68,6 +68,10 @@ tests/t_client-*-20??????-??????/
 t_client.rc
 t_client_ips.rc
 tests/unit_tests/**/*_testdriver
+tests/unit_tests/engine-key/client.key
+tests/unit_tests/engine-key/log.txt
+tests/unit_tests/engine-key/openssl.cnf
+tests/unit_tests/engine-key/passwd
 
 src/openvpn/openvpn
 include/openvpn-plugin.h
index 7e9a0e801377b7eaaf043b885bc00d792a377ecb..12dd230178bebbe4dda55e4b12621a6c8b339ccb 100755 (executable)
@@ -27,7 +27,7 @@ ${top_builddir}/src/openvpn/openvpn --cd ${top_srcdir}/sample --config sample-co
 # first off check we died because of a key mismatch.  If this doesn't
 # pass, suspect openssl of returning different messages and update the
 # test accordingly
-loggrep '(X509_check_private_key:key values mismatch|func\(128\):reason\(116\))' log.txt || { echo "Key mismatch not detected"; exit 1; }
+loggrep '(x509 certificate routines:(X509_check_private_key)?:key values mismatch|func\(128\):reason\(116\))' log.txt || { echo "Key mismatch not detected"; exit 1; }
 
 # now look for the engine prints (these are under our control)
 loggrep 'ENGINE: engine_init called' || { echo "Engine initialization not detected"; exit 1; }