Declare some additional variables

Further fixes for #167 pointed out by bjoernv.  Thanks!

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This commit is contained in:
Eric F Crist 2017-12-20 21:06:04 -06:00
parent 8fd8bdd59a
commit 5da67665fa
2 changed files with 8 additions and 2 deletions

View File

@ -5,6 +5,8 @@ Easy-RSA 3 ChangeLog
* Integrate with Travis-CI (#165)
* Remove "local" from variable assignment (#165)
* Other changes related to Travis-CI fixes
* Assign values (even empty ones) to variables defined previously with
"local"
3.0.3 (2017-08-22)
* Include mktemp windows binary

View File

@ -960,7 +960,8 @@ default_server_san() {
# verify a file seems to be a valid req/X509
verify_file() {
format="$1" path="$2"
format="$1"
path="$2"
"$EASYRSA_OPENSSL" $format -in "$path" -noout 2>/dev/null || return 1
return 0
} # => verify_file()
@ -968,7 +969,10 @@ verify_file() {
# show-* command backend
# Prints req/cert details in a readable format
show() {
type="$1" name="$2" in_file format
type="$1"
name="$2"
in_file=""
format=""
[ -n "$name" ] || die "\
Missing expected filename_base argument.
Run easyrsa without commands for usage help."