From 46c04cafd32442f93d90dcb0ea21d2627ebad25a Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 24 Aug 2018 16:47:37 -0600 Subject: [PATCH] change grep message for RSA key size with tests --- scripts/ocsp-stapling.test | 2 +- scripts/ocsp-stapling2.test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ocsp-stapling.test b/scripts/ocsp-stapling.test index 7d7b93cab..48e03fe95 100755 --- a/scripts/ocsp-stapling.test +++ b/scripts/ocsp-stapling.test @@ -158,7 +158,7 @@ if [ $? -eq 0 ]; then fi # check if supported key size is large enough to handle 4096 bit RSA -size=`./examples/client/client -? | grep "Max key"` +size=`./examples/client/client -? | grep "Max RSA key"` size=`echo ${size//[^0-9]/}` if [ ! -z "$size" ]; then printf 'check on max key size of %d ...' $size diff --git a/scripts/ocsp-stapling2.test b/scripts/ocsp-stapling2.test index 7fa4b1092..0d7b37749 100755 --- a/scripts/ocsp-stapling2.test +++ b/scripts/ocsp-stapling2.test @@ -168,7 +168,7 @@ trap cleanup EXIT INT TERM HUP [ ! -x ./examples/client/client ] && echo -e "\n\nClient doesn't exist" && exit 1 # check if supported key size is large enough to handle 4096 bit RSA -size=`./examples/client/client -? | grep "Max key"` +size=`./examples/client/client -? | grep "Max RSA key"` size=`echo ${size//[^0-9]/}` if [ ! -z "$size" ]; then printf 'check on max key size of %d ...' $size