summaryrefslogtreecommitdiff
path: root/regress/try-ciphers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/try-ciphers.sh')
-rw-r--r--regress/try-ciphers.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/regress/try-ciphers.sh b/regress/try-ciphers.sh
index 485843299..ac34cedbf 100644
--- a/regress/try-ciphers.sh
+++ b/regress/try-ciphers.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: try-ciphers.sh,v 1.21 2013/11/07 02:48:38 dtucker Exp $ 1# $OpenBSD: try-ciphers.sh,v 1.22 2013/11/21 03:18:51 djm Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="try ciphers" 4tid="try ciphers"
@@ -12,10 +12,11 @@ for c in `${SSH} -Q cipher`; do
12 if [ $? -ne 0 ]; then 12 if [ $? -ne 0 ]; then
13 fail "ssh -2 failed with mac $m cipher $c" 13 fail "ssh -2 failed with mac $m cipher $c"
14 fi 14 fi
15 # No point trying all MACs for GCM since they are ignored. 15 # No point trying all MACs for AEAD ciphers since they
16 case $c in 16 # are ignored.
17 aes*-gcm@openssh.com) test $n -gt 0 && break;; 17 if ssh -Q cipher-auth | grep "^${c}\$" >/dev/null 2>&1 ; then
18 esac 18 break
19 fi
19 n=`expr $n + 1` 20 n=`expr $n + 1`
20 done 21 done
21done 22done