From e207f855ebd89b19353bbd1615f65af52842f428 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Wed, 19 Jul 2023 03:02:55 +0100 Subject: [PATCH] openeasy_easyrsa: Remove unused variable 'has_config' Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 3e0ca90..c6bad8d 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -1070,20 +1070,10 @@ easyrsa_openssl() { rand) die "easyrsa_openssl: Illegal SSL command: rand" ;; - makesafeconf) makesafeconf=1; has_config=1 ;; - ca|req|srp|ts) has_config=1 ;; - *) unset -v has_config + makesafeconf) makesafeconf=1 ;; + *) : esac - # OpenSSL 1x genpkey does not support -config - # OpenSSL 3x genpkey requires -config - # LibreSSL passes the test without -config .. - if [ "$openssl_command" = genpkey ] && \ - [ "$ssl_lib" = openssl ] && [ "$osslv_major" = 3 ] - then - has_config=1 - fi - # Auto-escape hazardous characters escape_hazard || \ die "easyrsa_openssl - escape_hazard failed" @@ -1126,8 +1116,7 @@ easyrsa_openssl: No Safe SSL conf, FALLBACK to default" # Always fail here die "\ easyrsa_openssl - Command has failed: -* $EASYRSA_OPENSSL $openssl_command \ -${has_config:+-config $safe_ssl_cnf_tmp }$*" +* $EASYRSA_OPENSSL $openssl_command $*" } # => easyrsa_openssl() # Verify the SSL library is functional