diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2024-08-20 09:15:50 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2024-08-20 09:15:50 +0000 |
commit | 6bf95d7b92a2fdd716cf6bfbaef5bc893ab1c69d (patch) | |
tree | 6d607cadbbb7e6c6c833de609aa61cc769339624 /regress/usr.bin | |
parent | 548da14bff197115c8404ed40c79b5d6bb181131 (diff) |
Merge AEAD test into main test loop. Removes 3 duplicate tests and
speeds overall test up by about 1%.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/ssh/rekey.sh | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/regress/usr.bin/ssh/rekey.sh b/regress/usr.bin/ssh/rekey.sh index 24c5a380d4b..356e915c771 100644 --- a/regress/usr.bin/ssh/rekey.sh +++ b/regress/usr.bin/ssh/rekey.sh @@ -1,4 +1,4 @@ -# $OpenBSD: rekey.sh,v 1.24 2024/08/20 09:02:45 dtucker Exp $ +# $OpenBSD: rekey.sh,v 1.25 2024/08/20 09:15:49 dtucker Exp $ # Placed in the Public Domain. tid="rekey" @@ -58,19 +58,17 @@ done for opt in $opts; do verbose "client rekey $opt" - ssh_data_rekeying "$opt" + if ${SSH} -Q cipher-auth | sed 's/^/Ciphers=/' | \ + grep $opt >/dev/null; then + trace AEAD cipher, testing all KexAlgorithms + for kex in $kexs; do + ssh_data_rekeying "KexAlgorithms=$kex" "-o$opt" + done + else + ssh_data_rekeying "$opt" + fi done -# AEAD ciphers are magical so test with all KexAlgorithms -if ${SSH} -Q cipher-auth | grep '^.*$' >/dev/null 2>&1 ; then - for c in `${SSH} -Q cipher-auth`; do - for kex in `${SSH} -Q kex`; do - verbose "client rekey $c $kex" - ssh_data_rekeying "KexAlgorithms=$kex" -oCiphers=$c - done - done -fi - for s in 16 1k 128k 256k; do verbose "client rekeylimit ${s}" ssh_data_rekeying "" -oRekeyLimit=$s |