Skip to content

Commit

Permalink
Fix OCSP_check.sh
Browse files Browse the repository at this point in the history
As reported in trac OpenVPN#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 <[email protected]>
Acked-by: Gert Doering <[email protected]>
Message-Id: <[email protected]>
URL: http://article.gmane.org/gmane.network.openvpn.devel/11254
Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
syzzer authored and cron2 committed Feb 25, 2016
1 parent 852f1e4 commit ab0f846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/OCSP_check/OCSP_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab0f846

Please sign in to comment.