diff options
author | Damien Miller <djm@mindrot.org> | 2014-05-15 15:08:19 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-05-15 15:08:19 +1000 |
commit | d0b69fe90466920d69c96069312e24b581771bd7 (patch) | |
tree | 2c924c675ef9363b5ef31489669a4d2d87e64f2c | |
parent | edb1af50441d19fb2dd9ccb4d75bf14473fca584 (diff) |
- dtucker@cvs.openbsd.org 2014/05/03 18:46:14
[proxy-connect.sh]
Add tests for with and without compression, with and without privsep.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | regress/proxy-connect.sh | 29 |
2 files changed, 20 insertions, 12 deletions
@@ -102,6 +102,9 @@ | |||
102 | repair regress tests broken by server-side default cipher/kex/mac changes | 102 | repair regress tests broken by server-side default cipher/kex/mac changes |
103 | by ensuring that the option under test is included in the server's | 103 | by ensuring that the option under test is included in the server's |
104 | algorithm list | 104 | algorithm list |
105 | - dtucker@cvs.openbsd.org 2014/05/03 18:46:14 | ||
106 | [proxy-connect.sh] | ||
107 | Add tests for with and without compression, with and without privsep. | ||
105 | 108 | ||
106 | 20140430 | 109 | 20140430 |
107 | - (dtucker) [defines.h] Define __GNUC_PREREQ__ macro if we don't already | 110 | - (dtucker) [defines.h] Define __GNUC_PREREQ__ macro if we don't already |
diff --git a/regress/proxy-connect.sh b/regress/proxy-connect.sh index 76e602dd6..023ba7367 100644 --- a/regress/proxy-connect.sh +++ b/regress/proxy-connect.sh | |||
@@ -1,26 +1,31 @@ | |||
1 | # $OpenBSD: proxy-connect.sh,v 1.6 2013/03/07 00:20:34 djm Exp $ | 1 | # $OpenBSD: proxy-connect.sh,v 1.7 2014/05/03 18:46:14 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="proxy connect" | 4 | tid="proxy connect" |
5 | 5 | ||
6 | verbose "plain username" | 6 | mv $OBJ/sshd_proxy $OBJ/sshd_proxy.orig |
7 | for p in 1 2; do | 7 | |
8 | ${SSH} -$p -F $OBJ/ssh_proxy 999.999.999.999 true | 8 | for ps in no yes; do |
9 | if [ $? -ne 0 ]; then | 9 | cp $OBJ/sshd_proxy.orig $OBJ/sshd_proxy |
10 | fail "ssh proxyconnect protocol $p failed" | 10 | echo "UsePrivilegeSeparation $ps" >> $OBJ/sshd_proxy |
11 | fi | 11 | |
12 | SSH_CONNECTION=`${SSH} -$p -F $OBJ/ssh_proxy 999.999.999.999 'echo $SSH_CONNECTION'` | 12 | for p in 1 2; do |
13 | for c in no yes; do | ||
14 | verbose "plain username protocol $p privsep=$ps comp=$c" | ||
15 | opts="-$p -oCompression=$c -F $OBJ/ssh_proxy" | ||
16 | SSH_CONNECTION=`${SSH} $opts 999.999.999.999 'echo $SSH_CONNECTION'` | ||
13 | if [ $? -ne 0 ]; then | 17 | if [ $? -ne 0 ]; then |
14 | fail "ssh proxyconnect protocol $p failed" | 18 | fail "ssh proxyconnect protocol $p privsep=$ps comp=$c failed" |
15 | fi | 19 | fi |
16 | if [ "$SSH_CONNECTION" != "UNKNOWN 65535 UNKNOWN 65535" ]; then | 20 | if [ "$SSH_CONNECTION" != "UNKNOWN 65535 UNKNOWN 65535" ]; then |
17 | fail "bad SSH_CONNECTION" | 21 | fail "bad SSH_CONNECTION protocol $p privsep=$ps comp=$c" |
18 | fi | 22 | fi |
23 | done | ||
24 | done | ||
19 | done | 25 | done |
20 | 26 | ||
21 | verbose "username with style" | ||
22 | for p in 1 2; do | 27 | for p in 1 2; do |
28 | verbose "username with style protocol $p" | ||
23 | ${SSH} -$p -F $OBJ/ssh_proxy ${USER}:style@999.999.999.999 true || \ | 29 | ${SSH} -$p -F $OBJ/ssh_proxy ${USER}:style@999.999.999.999 true || \ |
24 | fail "ssh proxyconnect protocol $p failed" | 30 | fail "ssh proxyconnect protocol $p failed" |
25 | done | 31 | done |
26 | |||