diff options
Diffstat (limited to 'regress/try-ciphers.sh')
-rw-r--r-- | regress/try-ciphers.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/regress/try-ciphers.sh b/regress/try-ciphers.sh new file mode 100644 index 000000000..161f039c0 --- /dev/null +++ b/regress/try-ciphers.sh | |||
@@ -0,0 +1,29 @@ | |||
1 | # $OpenBSD: try-ciphers.sh,v 1.7 2002/04/03 09:30:01 markus Exp $ | ||
2 | # Placed in the Public Domain. | ||
3 | |||
4 | tid="try ciphers" | ||
5 | |||
6 | ciphers="aes128-cbc 3des-cbc blowfish-cbc cast128-cbc arcfour | ||
7 | aes192-cbc aes256-cbc rijndael-cbc@lysator.liu.se" | ||
8 | macs="hmac-sha1 hmac-md5 hmac-sha1-96 hmac-md5-96" | ||
9 | |||
10 | for c in $ciphers; do | ||
11 | for m in $macs; do | ||
12 | trace "proto 2 cipher $c mac $m" | ||
13 | verbose "test $tid: proto 2 cipher $c mac $m" | ||
14 | ${SSH} -F $OBJ/ssh_proxy -2 -m $m -c $c somehost true | ||
15 | if [ $? -ne 0 ]; then | ||
16 | fail "ssh -2 failed with mac $m cipher $c" | ||
17 | fi | ||
18 | done | ||
19 | done | ||
20 | |||
21 | ciphers="3des blowfish" | ||
22 | for c in $ciphers; do | ||
23 | trace "proto 1 cipher $c" | ||
24 | verbose "test $tid: proto 1 cipher $c" | ||
25 | ${SSH} -F $OBJ/ssh_proxy -1 -c $c somehost true | ||
26 | if [ $? -ne 0 ]; then | ||
27 | fail "ssh -1 failed with cipher $c" | ||
28 | fi | ||
29 | done | ||