1
# $OpenBSD: rekey.sh,v 1.1 2003/03/28 13:58:28 markus Exp $
2
# Placed in the Public Domain.
4
tid="rekey during transfer data"
10
rm -f ${COPY} ${LOG} ${DATA}
11
dd if=/bin/ls${EXEEXT} of=${DATA} bs=1k seek=511 count=1 > /dev/null 2>&1
13
for s in 16 1k 128k 256k; do
14
trace "rekeylimit ${s}"
17
${SSH} -oCompression=no -oRekeyLimit=$s \
18
-v -F $OBJ/ssh_proxy somehost "cat > ${COPY}" \
23
cmp $DATA ${COPY} || fail "corrupted copy"
24
n=`grep 'NEWKEYS sent' ${LOG} | wc -l`
26
trace "$n rekeying(s)"
28
fail "no rekeying occured"
31
rm -f ${COPY} ${LOG} ${DATA}