From c1bf6a43d7bd9180c3fe228492c857698fec36b2 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Tue, 23 May 2023 13:24:00 +0100 Subject: [PATCH] build-ca: Remove obsolete unit-test CA password variant If this code s left in then the unit test always falls through to testing a CA without a password. Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index b5463ee..20b28e4 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -1579,15 +1579,6 @@ to the latest Easy-RSA release." then : # No passphrase required - # Strictly for use only by easyrsa-unit-tests.sh - elif [ "$ERSA_UTEST_VERSION" ] && [ "$EASYRSA_USE_PASS" ] - then - # Set a test password and use file-descriptor method - CA_key_pass='EasyRSA' - # To use stdin for -passin and -passout - # MUST use -batch - ssl_batch=1 - elif [ "$EASYRSA_PASSOUT" ] && [ "$EASYRSA_PASSIN" ] then : # passphrase defined @@ -1722,11 +1713,6 @@ to the latest Easy-RSA release." verbose "\ build_ca: CA key password created via stdin" - if [ "$ERSA_UTEST_VERSION" ] && \ - [ "$EASYRSA_USE_PASS" ] - then - print "CA key via stdin" - fi else case "$EASYRSA_ALGO" in @@ -1786,11 +1772,6 @@ build_ca: CA key password created via temp-files" verbose "\ build_ca: CA certificate password created via stdin" - if [ "$ERSA_UTEST_VERSION" ] && \ - [ "$EASYRSA_USE_PASS" ] - then - print "CA Cert via stdin" - fi else easyrsa_openssl req -utf8 -new \