summaryrefslogtreecommitdiff
path: root/regress/integrity.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/integrity.sh')
-rw-r--r--regress/integrity.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/regress/integrity.sh b/regress/integrity.sh
index 1bd330a18..3950b7d1f 100644
--- a/regress/integrity.sh
+++ b/regress/integrity.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: integrity.sh,v 1.8 2013/04/06 06:00:22 dtucker Exp $ 1# $OpenBSD: integrity.sh,v 1.9 2013/04/07 02:16:03 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="integrity" 4tid="integrity"
@@ -47,14 +47,15 @@ for m in $macs; do
47 aes*gcm*) macopt="-c $m";; 47 aes*gcm*) macopt="-c $m";;
48 *) macopt="-m $m";; 48 *) macopt="-m $m";;
49 esac 49 esac
50 output=`${SSH} $macopt -2F $OBJ/ssh_proxy -o "$pxy" \ 50 verbose "test $tid: $m @$off $output"
51 999.999.999.999 'printf "%4096s" " "' 2>&1` 51 ${SSH} $macopt -2F $OBJ/ssh_proxy -o "$pxy" \
52 999.999.999.999 'printf "%4096s" " "' >/dev/null
52 if [ $? -eq 0 ]; then 53 if [ $? -eq 0 ]; then
53 fail "ssh -m $m succeeds with bit-flip at $off" 54 fail "ssh -m $m succeeds with bit-flip at $off"
54 fi 55 fi
55 ecnt=`expr $ecnt + 1` 56 ecnt=`expr $ecnt + 1`
56 output=`echo $output | tr -s '\r\n' '.'` 57 output=$(tail -2 $TEST_SSH_LOGFILE | egrep -v "^debug" | \
57 verbose "test $tid: $m @$off $output" 58 tr -s '\r\n' '.')
58 case "$output" in 59 case "$output" in
59 Bad?packet*) elen=`expr $elen + 1`; skip=3;; 60 Bad?packet*) elen=`expr $elen + 1`; skip=3;;
60 Corrupted?MAC* | Decryption?integrity?check?failed*) 61 Corrupted?MAC* | Decryption?integrity?check?failed*)