diff options
author | Colin Watson <cjwatson@debian.org> | 2014-10-07 12:13:50 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-10-07 12:13:50 +0100 |
commit | 487bdb3a5ef6075887b830ccb8a0b14f6da78e93 (patch) | |
tree | a2cff6fec1e6c4b4153a170a3e172cfe6bfdec46 /regress/dhgex.sh | |
parent | 796ba4fd011b5d0d9d78d592ba2f30fc9d5ed2e7 (diff) | |
parent | 28453d58058a4d60c3ebe7d7f0c31a510cbf6158 (diff) |
Import openssh_6.7p1.orig.tar.gz
Diffstat (limited to 'regress/dhgex.sh')
-rw-r--r-- | regress/dhgex.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/regress/dhgex.sh b/regress/dhgex.sh index 4c1a3d83c..57fca4a32 100644 --- a/regress/dhgex.sh +++ b/regress/dhgex.sh | |||
@@ -1,10 +1,11 @@ | |||
1 | # $OpenBSD: dhgex.sh,v 1.1 2014/01/25 04:35:32 dtucker Exp $ | 1 | # $OpenBSD: dhgex.sh,v 1.2 2014/04/21 22:15:37 djm Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="dhgex" | 4 | tid="dhgex" |
5 | 5 | ||
6 | LOG=${TEST_SSH_LOGFILE} | 6 | LOG=${TEST_SSH_LOGFILE} |
7 | rm -f ${LOG} | 7 | rm -f ${LOG} |
8 | cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak | ||
8 | 9 | ||
9 | kexs=`${SSH} -Q kex | grep diffie-hellman-group-exchange` | 10 | kexs=`${SSH} -Q kex | grep diffie-hellman-group-exchange` |
10 | 11 | ||
@@ -14,6 +15,9 @@ ssh_test_dhgex() | |||
14 | cipher="$1"; shift | 15 | cipher="$1"; shift |
15 | kex="$1"; shift | 16 | kex="$1"; shift |
16 | 17 | ||
18 | cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy | ||
19 | echo "KexAlgorithms=$kex" >> $OBJ/sshd_proxy | ||
20 | echo "Ciphers=$cipher" >> $OBJ/sshd_proxy | ||
17 | rm -f ${LOG} | 21 | rm -f ${LOG} |
18 | opts="-oKexAlgorithms=$kex -oCiphers=$cipher" | 22 | opts="-oKexAlgorithms=$kex -oCiphers=$cipher" |
19 | groupsz="1024<$bits<8192" | 23 | groupsz="1024<$bits<8192" |