]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix OCSP_check.sh
authorSteffan Karger <steffan@karger.me>
Thu, 25 Feb 2016 14:10:34 +0000 (15:10 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 25 Feb 2016 15:04:08 +0000 (16:04 +0100)
As reported in trac #582, the OCSP_check.sh script should use grep -E,
instead of grep -F when it uses ^ in the expression.

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1456409434-14784-1-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/11254
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit ab0f846de6991345c30f5b69817304183d347e0e)

contrib/OCSP_check/OCSP_check.sh

index 6876c6d8c40e18c1b9782585fb095db535e9f13a..26757889d4a3d710a422b001ab97e31383e25508 100644 (file)
@@ -105,9 +105,9 @@ if [ $check_depth -eq -1 ] || [ $cur_depth -eq $check_depth ]; then
           exit 1
       fi
       # check that the reported status of certificate is ok
-      if echo "$status" | grep -Fq "^${serial}: good"; then
+      if echo "$status" | grep -Eq "^${serial}: good"; then
         # check if signature on the OCSP response verified correctly
-        if echo "$status" | grep -Fq "^Response verify OK"; then
+        if echo "$status" | grep -Eq "^Response verify OK"; then
             exit 0
         fi
       fi