summaryrefslogtreecommitdiff
path: root/regress/dhgex.sh
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2019-10-09 22:59:48 +0100
committerColin Watson <cjwatson@debian.org>2019-10-09 22:59:48 +0100
commit4213eec74e74de6310c27a40c3e9759a08a73996 (patch)
treee97a6dcafc6763aea7c804e4e113c2750cb1400d /regress/dhgex.sh
parent102062f825fb26a74295a1c089c00c4c4c76b68a (diff)
parentcdf1d0a9f5d18535e0a18ff34860e81a6d83aa5c (diff)
Import openssh_8.1p1.orig.tar.gz
Diffstat (limited to 'regress/dhgex.sh')
-rw-r--r--regress/dhgex.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/regress/dhgex.sh b/regress/dhgex.sh
index 61fc178e8..ae64a9fb6 100644
--- a/regress/dhgex.sh
+++ b/regress/dhgex.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: dhgex.sh,v 1.4 2017/05/08 01:52:49 djm Exp $ 1# $OpenBSD: dhgex.sh,v 1.6 2019/10/06 11:49:50 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="dhgex" 4tid="dhgex"
@@ -34,9 +34,11 @@ ssh_test_dhgex()
34 got=`egrep "SSH2_MSG_KEX_DH_GEX_REQUEST(.*) sent" ${LOG}` 34 got=`egrep "SSH2_MSG_KEX_DH_GEX_REQUEST(.*) sent" ${LOG}`
35 fail "$tid unexpected GEX sizes, expected $groupsz, got $got" 35 fail "$tid unexpected GEX sizes, expected $groupsz, got $got"
36 fi 36 fi
37 # check what we got (depends on contents of system moduli file) 37 # check what we got.
38 gotbits="`awk '/bits set:/{print $4}' ${LOG} | head -1 | cut -f2 -d/`" 38 gotbits="`awk 'BEGIN{FS="/"}/bits set:/{print $2}' ${LOG} |
39 if [ "$gotbits" -lt "$bits" ]; then 39 head -1 | tr -d '\r\n'`"
40 trace "expected '$bits' got '$gotbits'"
41 if [ -z "$gotbits" ] || [ "$gotbits" -lt "$bits" ]; then
40 fatal "$tid expected $bits bit group, got $gotbits" 42 fatal "$tid expected $bits bit group, got $gotbits"
41 fi 43 fi
42} 44}
@@ -52,7 +54,7 @@ check()
52 done 54 done
53} 55}
54 56
55#check 2048 3des-cbc 57check 3072 3des-cbc # 112 bits.
56check 3072 `${SSH} -Q cipher | grep 128` 58check 3072 `${SSH} -Q cipher | grep 128`
57check 7680 `${SSH} -Q cipher | grep 192` 59check 7680 `${SSH} -Q cipher | grep 192`
58check 8192 `${SSH} -Q cipher | grep 256` 60check 8192 `${SSH} -Q cipher | grep 256`