From 476b7ecfe4947864b22fa23ed86edd0e62faf98d Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 30 Aug 2004 21:13:49 +1000 Subject: - (dtucker) [regress/Makefile] Clean scp-ssh-wrapper.scp too. Patch from vinschen at redhat.com. --- regress/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regress/Makefile') diff --git a/regress/Makefile b/regress/Makefile index 9e98e5880..dba6d0bde 100644 --- a/regress/Makefile +++ b/regress/Makefile @@ -47,7 +47,7 @@ CLEANFILES= t2.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2 \ rsa.pub rsa rsa1.pub rsa1 host.rsa host.rsa1 \ rsa-agent rsa-agent.pub rsa1-agent rsa1-agent.pub \ ls.copy banner.in banner.out empty.in \ - scp-ssh-wrapper.exe \ + scp-ssh-wrapper.scp \ remote_pid #LTESTS += ssh-com ssh-com-client ssh-com-keygen ssh-com-sftp -- cgit v1.2.3 From 3206e57e935870eb9a00a8aef3f3f1e70295b88d Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 6 Dec 2004 23:04:57 +1100 Subject: - david@cvs.openbsd.org 2004/07/09 19:45:43 [Makefile] add a missing CLEANFILES used in the re-exec test --- ChangeLog | 5 ++++- regress/Makefile | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'regress/Makefile') diff --git a/ChangeLog b/ChangeLog index d8b535fcb..2ac3b4330 100644 --- a/ChangeLog +++ b/ChangeLog @@ -29,6 +29,9 @@ - dtucker@cvs.openbsd.org 2004/07/08 12:59:35 [scp.sh] Regress test for bz #863 (scp double-error), requires $SUDO. ok markus@ + - david@cvs.openbsd.org 2004/07/09 19:45:43 + [Makefile] + add a missing CLEANFILES used in the re-exec test 20041203 - (dtucker) OpenBSD CVS Sync @@ -1902,4 +1905,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.3592 2004/12/06 12:03:27 dtucker Exp $ +$Id: ChangeLog,v 1.3593 2004/12/06 12:04:57 dtucker Exp $ diff --git a/regress/Makefile b/regress/Makefile index dba6d0bde..dc7b6e35a 100644 --- a/regress/Makefile +++ b/regress/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.31 2004/06/24 19:32:00 djm Exp $ +# $OpenBSD: Makefile,v 1.32 2004/07/09 19:45:43 david Exp $ REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t-exec tests: $(REGRESS_TARGETS) @@ -43,7 +43,7 @@ LTESTS= connect \ USER!= id -un CLEANFILES= t2.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2 \ authorized_keys_${USER} known_hosts pidfile \ - ssh_config ssh_proxy sshd_config sshd_proxy \ + ssh_config sshd_config.orig ssh_proxy sshd_config sshd_proxy \ rsa.pub rsa rsa1.pub rsa1 host.rsa host.rsa1 \ rsa-agent rsa-agent.pub rsa1-agent rsa1-agent.pub \ ls.copy banner.in banner.out empty.in \ -- cgit v1.2.3 From 124f58ecba39525af88e0619105656d383e515ff Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 6 Dec 2004 23:07:37 +1100 Subject: - djm@cvs.openbsd.org 2004/10/29 23:59:22 [Makefile added brokenkeys.sh] regression test for handling of corrupt keys in authorized_keys file --- ChangeLog | 5 ++++- regress/Makefile | 5 +++-- regress/brokenkeys.sh | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 regress/brokenkeys.sh (limited to 'regress/Makefile') diff --git a/ChangeLog b/ChangeLog index 34a8e81fe..5c0c14803 100644 --- a/ChangeLog +++ b/ChangeLog @@ -35,6 +35,9 @@ - djm@cvs.openbsd.org 2004/10/08 02:01:50 [reexec.sh] shrink and tidy; ok dtucker@ + - djm@cvs.openbsd.org 2004/10/29 23:59:22 + [Makefile added brokenkeys.sh] + regression test for handling of corrupt keys in authorized_keys file 20041203 - (dtucker) OpenBSD CVS Sync @@ -1908,4 +1911,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.3594 2004/12/06 12:05:52 dtucker Exp $ +$Id: ChangeLog,v 1.3595 2004/12/06 12:07:37 dtucker Exp $ diff --git a/regress/Makefile b/regress/Makefile index dc7b6e35a..3e22d547f 100644 --- a/regress/Makefile +++ b/regress/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.32 2004/07/09 19:45:43 david Exp $ +# $OpenBSD: Makefile,v 1.33 2004/10/29 23:59:22 djm Exp $ REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t-exec tests: $(REGRESS_TARGETS) @@ -38,7 +38,8 @@ LTESTS= connect \ dynamic-forward \ forwarding \ multiplex \ - reexec + reexec \ + brokenkeys USER!= id -un CLEANFILES= t2.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2 \ diff --git a/regress/brokenkeys.sh b/regress/brokenkeys.sh new file mode 100644 index 000000000..3e70c348a --- /dev/null +++ b/regress/brokenkeys.sh @@ -0,0 +1,23 @@ +# $OpenBSD: brokenkeys.sh,v 1.1 2004/10/29 23:59:22 djm Exp $ +# Placed in the Public Domain. + +tid="broken keys" + +KEYS="$OBJ/authorized_keys_${USER}" + +start_sshd + +mv ${KEYS} ${KEYS}.bak + +# Truncated key +echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEABTM= bad key" > $KEYS +cat ${KEYS}.bak >> ${KEYS} +cat $OBJ/$t.pub >> $OBJ/authorized_keys_$USER + +${SSH} -2 -F $OBJ/ssh_config somehost true +if [ $? -ne 0 ]; then + fail "ssh connect with protocol $p failed" +fi + +mv ${KEYS}.bak ${KEYS} + -- cgit v1.2.3 From 1c56ef6ac3c7818e5c71dd1f62a9473f340be9f2 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 7 Mar 2005 17:36:18 +1100 Subject: - (dtucker) OpenBSD CVS Sync (regress/) - fgsch@cvs.openbsd.org 2004/12/10 01:31:30 [Makefile] some globbing regress; prompted and ok djm@ --- ChangeLog | 6 +++++- regress/Makefile | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'regress/Makefile') diff --git a/ChangeLog b/ChangeLog index 389954232..d7682c033 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ 20050307 - (dtucker) [configure.ac] Disable gettext search when configuring with BSM audit support for the time being. ok djm@ + - (dtucker) OpenBSD CVS Sync (regress/) + - fgsch@cvs.openbsd.org 2004/12/10 01:31:30 + [Makefile] + some globbing regress; prompted and ok djm@ 20050306 - (dtucker) [monitor.c] Bug #125 comment #47: fix errors returned by monitor @@ -2287,4 +2291,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.3694 2005/03/07 06:34:45 dtucker Exp $ +$Id: ChangeLog,v 1.3695 2005/03/07 06:36:18 dtucker Exp $ diff --git a/regress/Makefile b/regress/Makefile index 3e22d547f..0536ee7b9 100644 --- a/regress/Makefile +++ b/regress/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.33 2004/10/29 23:59:22 djm Exp $ +# $OpenBSD: Makefile,v 1.34 2004/12/10 01:31:30 fgsch Exp $ REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t-exec tests: $(REGRESS_TARGETS) @@ -34,6 +34,7 @@ LTESTS= connect \ sftp-cmds \ sftp-badcmds \ sftp-batch \ + sftp-glob \ reconfigure \ dynamic-forward \ forwarding \ -- cgit v1.2.3 From b712fccc18b218e98bd6ef69c85308cd00a6e543 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 7 Mar 2005 18:27:28 +1100 Subject: - david@cvs.openbsd.org 2005/01/14 04:21:18 [Makefile test-exec.sh] pass the SUDO make variable to the individual sh tests; ok dtucker@ markus@ --- ChangeLog | 5 ++++- regress/Makefile | 4 ++-- regress/test-exec.sh | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'regress/Makefile') diff --git a/ChangeLog b/ChangeLog index 1949e264d..4d4f04909 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ - fgsch@cvs.openbsd.org 2004/12/10 01:31:30 [Makefile sftp-glob.sh] some globbing regress; prompted and ok djm@ + - david@cvs.openbsd.org 2005/01/14 04:21:18 + [Makefile test-exec.sh] + pass the SUDO make variable to the individual sh tests; ok dtucker@ markus@ 20050306 - (dtucker) [monitor.c] Bug #125 comment #47: fix errors returned by monitor @@ -2291,4 +2294,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.3696 2005/03/07 07:25:53 dtucker Exp $ +$Id: ChangeLog,v 1.3697 2005/03/07 07:27:28 dtucker Exp $ diff --git a/regress/Makefile b/regress/Makefile index 0536ee7b9..eee1f3bf2 100644 --- a/regress/Makefile +++ b/regress/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.34 2004/12/10 01:31:30 fgsch Exp $ +# $OpenBSD: Makefile,v 1.35 2005/01/14 04:21:18 david Exp $ REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t-exec tests: $(REGRESS_TARGETS) @@ -92,5 +92,5 @@ t-exec: ${LTESTS:=.sh} @if [ "x$?" = "x" ]; then exit 0; fi; \ for TEST in ""$?; do \ echo "run test $${TEST}" ... 1>&2; \ - (sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \ + (env SUDO=${SUDO} sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \ done diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 4f10c2ba1..346b68f16 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh @@ -1,4 +1,4 @@ -# $OpenBSD: test-exec.sh,v 1.25 2004/12/06 10:49:56 dtucker Exp $ +# $OpenBSD: test-exec.sh,v 1.26 2005/01/14 04:21:18 david Exp $ # Placed in the Public Domain. #SUDO=sudo -- cgit v1.2.3 From 5d909f077336318267d4089f41c7deb5e4b6c64d Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 7 Mar 2005 18:35:34 +1100 Subject: - djm@cvs.openbsd.org 2005/03/04 08:48:46 [Makefile envpass.sh] regress test for SendEnv config parsing bug; ok dtucker@ --- ChangeLog | 5 ++++- regress/Makefile | 4 ++-- regress/envpass.sh | 21 +++++++++++++++------ 3 files changed, 21 insertions(+), 9 deletions(-) (limited to 'regress/Makefile') diff --git a/ChangeLog b/ChangeLog index 4b481a18b..1c02ab321 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,9 @@ - djm@cvs.openbsd.org 2005/02/27 23:13:36 [login-timeout.sh] avoid nameservice lookups in regress test; ok dtucker@ + - djm@cvs.openbsd.org 2005/03/04 08:48:46 + [Makefile envpass.sh] + regress test for SendEnv config parsing bug; ok dtucker@ 20050306 - (dtucker) [monitor.c] Bug #125 comment #47: fix errors returned by monitor @@ -2301,4 +2304,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.3699 2005/03/07 07:34:04 dtucker Exp $ +$Id: ChangeLog,v 1.3700 2005/03/07 07:35:34 dtucker Exp $ diff --git a/regress/Makefile b/regress/Makefile index eee1f3bf2..4f47bc3fd 100644 --- a/regress/Makefile +++ b/regress/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.35 2005/01/14 04:21:18 david Exp $ +# $OpenBSD: Makefile,v 1.36 2005/03/04 08:48:46 djm Exp $ REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t-exec tests: $(REGRESS_TARGETS) @@ -49,7 +49,7 @@ CLEANFILES= t2.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2 \ rsa.pub rsa rsa1.pub rsa1 host.rsa host.rsa1 \ rsa-agent rsa-agent.pub rsa1-agent rsa1-agent.pub \ ls.copy banner.in banner.out empty.in \ - scp-ssh-wrapper.scp \ + scp-ssh-wrapper.scp ssh_proxy_envpass \ remote_pid #LTESTS += ssh-com ssh-com-client ssh-com-keygen ssh-com-sftp diff --git a/regress/envpass.sh b/regress/envpass.sh index 5a7e178d8..af7eafe3d 100644 --- a/regress/envpass.sh +++ b/regress/envpass.sh @@ -1,13 +1,20 @@ -# $OpenBSD: envpass.sh,v 1.3 2004/06/22 22:42:02 dtucker Exp $ +# $OpenBSD: envpass.sh,v 1.4 2005/03/04 08:48:46 djm Exp $ # Placed in the Public Domain. tid="environment passing" # NB accepted env vars are in test-exec.sh (_XXX_TEST_* and _XXX_TEST) +# Prepare a custom config to test for a configuration parsing bug fixed in 4.0 +cat << EOF > $OBJ/ssh_proxy_envpass +Host test-sendenv-confparse-bug + SendEnv * +EOF +cat $OBJ/ssh_proxy >> $OBJ/ssh_proxy_envpass + trace "pass env, don't accept" verbose "test $tid: pass env, don't accept" -_TEST_ENV=blah ${SSH} -oSendEnv="*" -F $OBJ/ssh_proxy otherhost \ +_TEST_ENV=blah ${SSH} -oSendEnv="*" -F $OBJ/ssh_proxy_envpass otherhost \ sh << 'EOF' test -z "$_TEST_ENV" EOF @@ -18,7 +25,7 @@ fi trace "don't pass env, accept" verbose "test $tid: don't pass env, accept" -${SSH} -F $OBJ/ssh_proxy otherhost \ +_XXX_TEST_A=1 _XXX_TEST_B=2 ${SSH} -F $OBJ/ssh_proxy_envpass otherhost \ sh << 'EOF' test -z "$_XXX_TEST_A" && test -z "$_XXX_TEST_B" EOF @@ -29,8 +36,8 @@ fi trace "pass single env, accept single env" verbose "test $tid: pass single env, accept single env" -_XXX_TEST=blah ${SSH} -oSendEnv="_XXX_TEST" -F $OBJ/ssh_proxy otherhost \ - sh << 'EOF' +_XXX_TEST=blah ${SSH} -oSendEnv="_XXX_TEST" -F $OBJ/ssh_proxy_envpass \ + otherhost sh << 'EOF' test X"$_XXX_TEST" = X"blah" EOF r=$? @@ -41,7 +48,7 @@ fi trace "pass multiple env, accept multiple env" verbose "test $tid: pass multiple env, accept multiple env" _XXX_TEST_A=1 _XXX_TEST_B=2 ${SSH} -oSendEnv="_XXX_TEST_*" \ - -F $OBJ/ssh_proxy otherhost \ + -F $OBJ/ssh_proxy_envpass otherhost \ sh << 'EOF' test X"$_XXX_TEST_A" = X"1" -a X"$_XXX_TEST_B" = X"2" EOF @@ -49,3 +56,5 @@ r=$? if [ $r -ne 0 ]; then fail "environment not found" fi + +rm -f $OBJ/ssh_proxy_envpass -- cgit v1.2.3