From: Andy Polyakov Date: Mon, 27 Apr 2009 19:31:52 +0000 (+0000) Subject: test_padlock: update from HEAD. X-Git-Tag: OpenSSL_1_0_0-beta3~112 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=004c3ca5216544d4e4982d53b032d8d85af24648;p=oweals%2Fopenssl.git test_padlock: update from HEAD. --- diff --git a/test/test_padlock b/test/test_padlock index 6dd4911f4f..5c0f21043c 100755 --- a/test/test_padlock +++ b/test/test_padlock @@ -28,26 +28,26 @@ if $PROG engine padlock | grep -v no-ACE; then for alg in $ACE_ALGS; do echo $alg TEST=`( cat $PROG | \ - $PROG enc -e -k $HASH -$alg -bufsize 999 -engine padlock | \ - $PROG enc -d -k $HASH -$alg | \ + $PROG enc -e -k "$HASH" -$alg -bufsize 999 -engine padlock | \ + $PROG enc -d -k "$HASH" -$alg | \ $PROG dgst -hex ) 2>/dev/null` - if [ $TEST != $HASH ]; then + if [ "$TEST" != "$HASH" ]; then echo "-$alg encrypt test failed" nerr=`expr $nerr + 1` fi TEST=`( cat $PROG | \ - $PROG enc -e -k $HASH -$alg | \ - $PROG enc -d -k $HASH -$alg -bufsize 999 -engine padlock | \ + $PROG enc -e -k "$HASH" -$alg | \ + $PROG enc -d -k "$HASH" -$alg -bufsize 999 -engine padlock | \ $PROG dgst -hex ) 2>/dev/null` - if [ $TEST != $HASH ]; then + if [ "$TEST" != "$HASH" ]; then echo "-$alg decrypt test failed" nerr=`expr $nerr + 1` fi TEST=`( cat $PROG | \ - $PROG enc -e -k $HASH -$alg -engine padlock | \ - $PROG enc -d -k $HASH -$alg -engine padlock | \ + $PROG enc -e -k "$HASH" -$alg -engine padlock | \ + $PROG enc -d -k "$HASH" -$alg -engine padlock | \ $PROG dgst -hex ) 2>/dev/null` - if [ $TEST != $HASH ]; then + if [ "$TEST" != "$HASH" ]; then echo "-$alg en/decrypt test failed" nerr=`expr $nerr + 1` fi