openeasy_easyrsa: Remove unused variable 'has_config'
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
parent
d4fa9bdb6d
commit
e207f855eb
@ -1070,20 +1070,10 @@ easyrsa_openssl() {
|
|||||||
rand)
|
rand)
|
||||||
die "easyrsa_openssl: Illegal SSL command: rand"
|
die "easyrsa_openssl: Illegal SSL command: rand"
|
||||||
;;
|
;;
|
||||||
makesafeconf) makesafeconf=1; has_config=1 ;;
|
makesafeconf) makesafeconf=1 ;;
|
||||||
ca|req|srp|ts) has_config=1 ;;
|
*) :
|
||||||
*) unset -v has_config
|
|
||||||
esac
|
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
|
# Auto-escape hazardous characters
|
||||||
escape_hazard || \
|
escape_hazard || \
|
||||||
die "easyrsa_openssl - escape_hazard failed"
|
die "easyrsa_openssl - escape_hazard failed"
|
||||||
@ -1126,8 +1116,7 @@ easyrsa_openssl: No Safe SSL conf, FALLBACK to default"
|
|||||||
# Always fail here
|
# Always fail here
|
||||||
die "\
|
die "\
|
||||||
easyrsa_openssl - Command has failed:
|
easyrsa_openssl - Command has failed:
|
||||||
* $EASYRSA_OPENSSL $openssl_command \
|
* $EASYRSA_OPENSSL $openssl_command $*"
|
||||||
${has_config:+-config $safe_ssl_cnf_tmp }$*"
|
|
||||||
} # => easyrsa_openssl()
|
} # => easyrsa_openssl()
|
||||||
|
|
||||||
# Verify the SSL library is functional
|
# Verify the SSL library is functional
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user