1 # $OpenBSD: try-ciphers.sh,v 1.25 2015/03/24 20:22:17 markus Exp $
2 # Placed in the Public Domain.
6 cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak
8 for c in `${SSH} -Q cipher`; do
10 for m in `${SSH} -Q mac`; do
11 trace "proto 2 cipher $c mac $m"
12 verbose "test $tid: proto 2 cipher $c mac $m"
13 cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy
14 echo "Ciphers=$c" >> $OBJ/sshd_proxy
15 echo "MACs=$m" >> $OBJ/sshd_proxy
16 ${SSH} -F $OBJ/ssh_proxy -2 -m $m -c $c somehost true
18 fail "ssh -2 failed with mac $m cipher $c"
20 # No point trying all MACs for AEAD ciphers since they
22 if ${SSH} -Q cipher-auth | grep "^${c}\$" >/dev/null 2>&1 ; then
29 if ssh_version 1; then
30 ciphers="3des blowfish"
35 trace "proto 1 cipher $c"
36 verbose "test $tid: proto 1 cipher $c"
37 ${SSH} -F $OBJ/ssh_proxy -1 -c $c somehost true
39 fail "ssh -1 failed with cipher $c"