change grep message for RSA key size with tests

This commit is contained in:
Jacob Barthelmeh 2018-08-24 16:47:37 -06:00
parent 205088d1bc
commit 46c04cafd3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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