Merge pull request #1790 from JacobBarthelmeh/SanityChecks

change grep message for RSA key size with tests
This commit is contained in:
toddouska 2018-08-29 16:11:14 -07:00 committed by GitHub
commit ab487e25a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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