summaryrefslogtreecommitdiff
path: root/regress/try-ciphers.sh
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-05-01 13:17:33 +1000
committerDamien Miller <djm@mindrot.org>2002-05-01 13:17:33 +1000
commit38cd4358921bd674cace17d6bae71143b716027d (patch)
tree6c5a048f13a0a413821bf75b8ad1346b7408447a /regress/try-ciphers.sh
parent2f09289e741582871ff068f8697b924a257fb703 (diff)
- (djm) Import OpenBSD regression tests. Requires BSD make to run
Diffstat (limited to 'regress/try-ciphers.sh')
-rw-r--r--regress/try-ciphers.sh29
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
4tid="try ciphers"
5
6ciphers="aes128-cbc 3des-cbc blowfish-cbc cast128-cbc arcfour
7 aes192-cbc aes256-cbc rijndael-cbc@lysator.liu.se"
8macs="hmac-sha1 hmac-md5 hmac-sha1-96 hmac-md5-96"
9
10for 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
19done
20
21ciphers="3des blowfish"
22for 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
29done