summaryrefslogtreecommitdiff
path: root/regress/rekey.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/rekey.sh')
-rw-r--r--regress/rekey.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/regress/rekey.sh b/regress/rekey.sh
index 8eb7efaf9..5f32961c8 100644
--- a/regress/rekey.sh
+++ b/regress/rekey.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: rekey.sh,v 1.8 2013/05/17 04:29:14 dtucker Exp $ 1# $OpenBSD: rekey.sh,v 1.9 2013/11/04 12:27:42 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="rekey" 4tid="rekey"
@@ -7,11 +7,17 @@ LOG=${TEST_SSH_LOGFILE}
7 7
8rm -f ${LOG} 8rm -f ${LOG}
9 9
10kexalgs="curve25519-sha256@libssh.org ecdh-sha2-nistp256 \
11ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group-exchange-sha256 \
12diffie-hellman-group-exchange-sha1 diffie-hellman-group14-sha1 \
13diffie-hellman-group1-sha1"
14
10for s in 16 1k 128k 256k; do 15for s in 16 1k 128k 256k; do
11 verbose "client rekeylimit ${s}" 16 for a in $kexalgs; do
17 verbose "client rekeylimit ${s} ${a}"
12 rm -f ${COPY} ${LOG} 18 rm -f ${COPY} ${LOG}
13 cat $DATA | \ 19 cat $DATA | \
14 ${SSH} -oCompression=no -oRekeyLimit=$s \ 20 ${SSH} -oCompression=no -oRekeyLimit=$s -oKexAlgorithms=$a \
15 -v -F $OBJ/ssh_proxy somehost "cat > ${COPY}" 21 -v -F $OBJ/ssh_proxy somehost "cat > ${COPY}"
16 if [ $? -ne 0 ]; then 22 if [ $? -ne 0 ]; then
17 fail "ssh failed" 23 fail "ssh failed"
@@ -23,6 +29,7 @@ for s in 16 1k 128k 256k; do
23 if [ $n -lt 1 ]; then 29 if [ $n -lt 1 ]; then
24 fail "no rekeying occured" 30 fail "no rekeying occured"
25 fi 31 fi
32 done
26done 33done
27 34
28for s in 5 10; do 35for s in 5 10; do