Skip to content

Commit 030906c

Browse files
committed
Fix cmd case to catch unknown commands in No-CA mode
Signed-off-by: Richard T Bonhomme <[email protected]>
1 parent 8445068 commit 030906c

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

easytls

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ VERBATUM_COPYRIGHT_HEADER_INCLUDE_NEGOTIABLE
3434
# Set the Easy-TLS version
3535
easytls_version ()
3636
{
37+
easytls_verbose
3738
print "Easy-TLS version: ${EASYTLS_VERSION}"
39+
easytls_verbose
3840
} # => easytls_version ()
3941

4042

@@ -7035,7 +7037,7 @@ main ()
70357037
[ $$ -eq ${EASYTLS_lock_PID} ] || \
70367038
die "PID mismatch: $$ ${EASYTLS_lock_PID}"
70377039
else
7038-
# Easy-TLS us not initialised
7040+
# Easy-TLS is not initialised
70397041
:
70407042
fi
70417043

@@ -7108,9 +7110,9 @@ main ()
71087110
die "Error: easytls_config"
71097111
cmd='Done'
71107112
;;
7111-
esac
7113+
esac # Edit config
71127114
;;
7113-
esac
7115+
esac # Init required has been checked
71147116

71157117
# Commands which can run with or without a PKI
71167118
case "${cmd}" in
@@ -7211,7 +7213,7 @@ main ()
72117213
die "Error: disabled_list_manager rehash"
72127214
cmd='Done'
72137215
;;
7214-
esac
7216+
esac # With or without a PKI
72157217

72167218
# When no-ca is true use these versions of commands
72177219
if [ $EASYTLS_NO_CA ]
@@ -7235,10 +7237,6 @@ main ()
72357237
die "Error: noca_status"
72367238
cmd='Done'
72377239
;;
7238-
*)
7239-
error_msg "Command '${cmd}' does not support 'no-ca' mode"
7240-
cmd='Done'
7241-
;;
72427240
esac
72437241
fi
72447242

@@ -7278,7 +7276,7 @@ main ()
72787276
# save me!
72797277
save_wiscii_hash || die "Master hash save failed"
72807278
;;
7281-
esac # help/versiom/Initialise
7279+
esac # help/version/Initialise
72827280

72837281
} # => main ()
72847282

0 commit comments

Comments
 (0)