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/proxy-connect.sh | |
parent | 796ba4fd011b5d0d9d78d592ba2f30fc9d5ed2e7 (diff) | |
parent | 28453d58058a4d60c3ebe7d7f0c31a510cbf6158 (diff) |
Import openssh_6.7p1.orig.tar.gz
Diffstat (limited to 'regress/proxy-connect.sh')
-rw-r--r-- | regress/proxy-connect.sh | 29 |
1 files changed, 17 insertions, 12 deletions
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 | |||