summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/rekey.sh24
1 files changed, 22 insertions, 2 deletions
diff --git a/regress/rekey.sh b/regress/rekey.sh
index fd452b034..0d4444d03 100644
--- a/regress/rekey.sh
+++ b/regress/rekey.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: rekey.sh,v 1.15 2014/04/21 22:15:37 djm Exp $ 1# $OpenBSD: rekey.sh,v 1.16 2015/02/14 12:43:16 markus Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="rekey" 4tid="rekey"
@@ -100,9 +100,29 @@ for s in 5 10; do
100 fi 100 fi
101done 101done
102 102
103echo "rekeylimit default 5" >>$OBJ/sshd_proxy 103for s in 16 1k 128k 256k; do
104 verbose "server rekeylimit ${s}"
105 cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy
106 echo "rekeylimit ${s}" >>$OBJ/sshd_proxy
107 rm -f ${COPY} ${LOG}
108 ${SSH} -oCompression=no -F $OBJ/ssh_proxy somehost "cat ${DATA}" \
109 > ${COPY}
110 if [ $? -ne 0 ]; then
111 fail "ssh failed"
112 fi
113 cmp ${DATA} ${COPY} || fail "corrupted copy"
114 n=`grep 'NEWKEYS sent' ${LOG} | wc -l`
115 n=`expr $n - 1`
116 trace "$n rekeying(s)"
117 if [ $n -lt 1 ]; then
118 fail "no rekeying occured"
119 fi
120done
121
104for s in 5 10; do 122for s in 5 10; do
105 verbose "server rekeylimit default ${s} no data" 123 verbose "server rekeylimit default ${s} no data"
124 cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy
125 echo "rekeylimit default ${s}" >>$OBJ/sshd_proxy
106 rm -f ${COPY} ${LOG} 126 rm -f ${COPY} ${LOG}
107 ${SSH} -oCompression=no -F $OBJ/ssh_proxy somehost "sleep $s;sleep 3" 127 ${SSH} -oCompression=no -F $OBJ/ssh_proxy somehost "sleep $s;sleep 3"
108 if [ $? -ne 0 ]; then 128 if [ $? -ne 0 ]; then