From 0e2cf100a804062f3f1c7be56df7f688ca74f0f4 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Thu, 28 Apr 2022 00:13:46 +0100 Subject: [PATCH] Simplify 'case' for revocation reasons list Effects: revoke and revoke-renewed Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 4075d05..feffbe7 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -1416,14 +1416,13 @@ Run easyrsa without commands for usage and command help." shift case "$crl_reason" in - unspecified | \ - keyCompromise |\ - CACompromise | \ - affiliationChanged | \ - superseded | \ - cessationOfOperation | \ - certificateHold ) : # ok - ;; + unspecified) : ;; + keyCompromise) : ;; + CACompromise) : ;; + affiliationChanged) : ;; + superseded) : ;; + cessationOfOperation) : ;; + certificateHold) : ;; *) die "Illegal reason: $crl_reason" esac else @@ -1811,14 +1810,13 @@ Run easyrsa without commands for usage and command help." shift case "$crl_reason" in - unspecified | \ - keyCompromise |\ - CACompromise | \ - affiliationChanged | \ - superseded | \ - cessationOfOperation | \ - certificateHold ) : # ok - ;; + unspecified) : ;; + keyCompromise) : ;; + CACompromise) : ;; + affiliationChanged) : ;; + superseded) : ;; + cessationOfOperation) : ;; + certificateHold) : ;; *) die "Illegal reason: $crl_reason" esac else