1 # $OpenBSD: try-ciphers.sh,v 1.22 2013/11/21 03:18:51 djm Exp $
2 # Placed in the Public Domain.
6 for c in `${SSH} -Q cipher`; do
8 for m in `${SSH} -Q mac`; do
9 trace "proto 2 cipher $c mac $m"
10 verbose "test $tid: proto 2 cipher $c mac $m"
11 ${SSH} -F $OBJ/ssh_proxy -2 -m $m -c $c somehost true
13 fail "ssh -2 failed with mac $m cipher $c"
15 # No point trying all MACs for AEAD ciphers since they
17 if ssh -Q cipher-auth | grep "^${c}\$" >/dev/null 2>&1 ; then
24 ciphers="3des blowfish"
26 trace "proto 1 cipher $c"
27 verbose "test $tid: proto 1 cipher $c"
28 ${SSH} -F $OBJ/ssh_proxy -1 -c $c somehost true
30 fail "ssh -1 failed with cipher $c"