head	1.2;
access;
symbols
	netbsd-11-0-RC5:1.2
	netbsd-11-0-RC4:1.2
	bozohttpd-20260503:1.2
	bozohttpd-20240428:1.2
	netbsd-11-0-RC3:1.2
	netbsd-11-0-RC2:1.2
	netbsd-11-0-RC1:1.2
	perseant-exfatfs-base-20250801:1.2
	netbsd-11:1.2.0.14
	netbsd-11-base:1.2
	netbsd-10-1-RELEASE:1.2
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.12
	perseant-exfatfs-base:1.2
	netbsd-8-3-RELEASE:1.1.20.1
	netbsd-9-4-RELEASE:1.2
	netbsd-10-0-RELEASE:1.2
	netbsd-10-0-RC6:1.2
	netbsd-10-0-RC5:1.2
	netbsd-10-0-RC4:1.2
	bozohttpd-20240126:1.2
	netbsd-10-0-RC3:1.2
	netbsd-10-0-RC2:1.2
	netbsd-10-0-RC1:1.2
	netbsd-10:1.2.0.10
	netbsd-10-base:1.2
	netbsd-9-3-RELEASE:1.2
	bozohttpd-20220517:1.2
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.8
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	netbsd-9-2-RELEASE:1.2
	cjep_staticlib_x:1.2.0.6
	cjep_staticlib_x-base:1.2
	bozohttpd-20210227:1.2
	netbsd-9-1-RELEASE:1.2
	bozohttpd-20201014:1.2
	bozohttpd-20200820:1.2
	bozohttpd-20190228:1.2
	phil-wifi-20200421:1.2
	phil-wifi-20200411:1.2
	is-mlppp:1.2.0.4
	is-mlppp-base:1.2
	phil-wifi-20200406:1.2
	netbsd-8-2-RELEASE:1.1.20.1
	netbsd-9-0-RELEASE:1.2
	netbsd-9-0-RC2:1.2
	netbsd-9-0-RC1:1.2
	phil-wifi-20191119:1.2
	netbsd-9:1.2.0.2
	netbsd-9-base:1.2
	phil-wifi-20190609:1.2
	netbsd-8-1-RELEASE:1.1
	netbsd-8-1-RC1:1.1
	pgoyette-compat-merge-20190127:1.1.26.1
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.1
	pgoyette-compat-1126:1.1
	bozohttpd-20181125:1.1
	bozohttpd-20181123:1.1
	bozohttpd-20181121:1.1
	bozohttpd-20181118:1.1
	pgoyette-compat-1020:1.1
	pgoyette-compat-0930:1.1
	pgoyette-compat-0906:1.1
	netbsd-7-2-RELEASE:1.1.4.2
	pgoyette-compat-0728:1.1
	netbsd-8-0-RELEASE:1.1
	phil-wifi:1.1.0.28
	phil-wifi-base:1.1
	pgoyette-compat-0625:1.1
	netbsd-8-0-RC2:1.1
	pgoyette-compat-0521:1.1
	pgoyette-compat-0502:1.1
	pgoyette-compat-0422:1.1
	netbsd-8-0-RC1:1.1
	pgoyette-compat-0415:1.1
	pgoyette-compat-0407:1.1
	pgoyette-compat-0330:1.1
	pgoyette-compat-0322:1.1
	pgoyette-compat-0315:1.1
	netbsd-7-1-2-RELEASE:1.1.4.2
	pgoyette-compat:1.1.0.26
	pgoyette-compat-base:1.1
	netbsd-7-1-1-RELEASE:1.1.4.2
	matt-nb8-mediatek:1.1.0.24
	matt-nb8-mediatek-base:1.1
	perseant-stdc-iso10646:1.1.0.22
	perseant-stdc-iso10646-base:1.1
	netbsd-8:1.1.0.20
	netbsd-8-base:1.1
	prg-localcount2-base3:1.1
	prg-localcount2-base2:1.1
	prg-localcount2-base1:1.1
	prg-localcount2:1.1.0.18
	prg-localcount2-base:1.1
	pgoyette-localcount-20170426:1.1
	bouyer-socketcan:1.1.0.16
	bouyer-socketcan-base1:1.1
	pgoyette-localcount:1.1.0.14
	pgoyette-localcount-20170320:1.1
	netbsd-7-1:1.1.4.2.0.2
	netbsd-7-nhusb:1.1.0.12
	netbsd-7-1-RELEASE:1.1.4.2
	netbsd-6:1.1.0.10
	netbsd-6-1:1.1.0.8
	netbsd-6-0:1.1.0.6
	netbsd-7-1-RC2:1.1.4.2
	netbsd-7:1.1.0.4
	netbsd-7-0:1.1.0.2;
locks; strict;
comment	@# @;


1.2
date	2019.01.17.07.39.00;	author mrg;	state Exp;
branches;
next	1.1;
commitid	09PAaDx8U1FxK68B;

1.1
date	2017.01.31.14.33.54;	author mrg;	state Exp;
branches
	1.1.2.1
	1.1.4.1
	1.1.6.1
	1.1.8.1
	1.1.10.1
	1.1.12.1
	1.1.14.1
	1.1.16.1
	1.1.20.1
	1.1.26.1
	1.1.28.1;
next	;
commitid	BX7leUhVGCoN28Ez;

1.1.2.1
date	2017.01.31.14.33.54;	author snj;	state dead;
branches;
next	1.1.2.2;
commitid	p8XNh9nFUGOB7IFz;

1.1.2.2
date	2017.02.12.21.59.45;	author snj;	state Exp;
branches;
next	1.1.2.3;
commitid	p8XNh9nFUGOB7IFz;

1.1.2.3
date	2019.06.15.15.57.32;	author martin;	state Exp;
branches;
next	;
commitid	fLxl4ur27ZtHIirB;

1.1.4.1
date	2017.01.31.14.33.54;	author snj;	state dead;
branches;
next	1.1.4.2;
commitid	k0fmNBASWNSmbIFz;

1.1.4.2
date	2017.02.12.22.07.17;	author snj;	state Exp;
branches
	1.1.4.2.2.1;
next	1.1.4.3;
commitid	k0fmNBASWNSmbIFz;

1.1.4.3
date	2019.06.15.15.54.58;	author martin;	state Exp;
branches;
next	;
commitid	M3W48f6zlGiMHirB;

1.1.4.2.2.1
date	2019.06.15.15.56.22;	author martin;	state Exp;
branches;
next	;
commitid	kC51tYYbUjIhIirB;

1.1.6.1
date	2017.01.31.14.33.54;	author snj;	state dead;
branches;
next	1.1.6.2;
commitid	rdr2mHDfrnupvAIz;

1.1.6.2
date	2017.03.07.07.16.08;	author snj;	state Exp;
branches;
next	;
commitid	rdr2mHDfrnupvAIz;

1.1.8.1
date	2017.01.31.14.33.54;	author snj;	state dead;
branches;
next	1.1.8.2;
commitid	u1UVe6SlnvFSxAIz;

1.1.8.2
date	2017.03.07.07.21.54;	author snj;	state Exp;
branches;
next	;
commitid	u1UVe6SlnvFSxAIz;

1.1.10.1
date	2017.01.31.14.33.54;	author snj;	state dead;
branches;
next	1.1.10.2;
commitid	g5OheTlyDwAXyAIz;

1.1.10.2
date	2017.03.07.07.25.19;	author snj;	state Exp;
branches;
next	;
commitid	g5OheTlyDwAXyAIz;

1.1.12.1
date	2017.01.31.14.33.54;	author skrll;	state dead;
branches;
next	1.1.12.2;
commitid	vH6VFbpxnMy7rmJz;

1.1.12.2
date	2017.03.13.07.41.25;	author skrll;	state Exp;
branches;
next	;
commitid	vH6VFbpxnMy7rmJz;

1.1.14.1
date	2017.01.31.14.33.54;	author pgoyette;	state dead;
branches;
next	1.1.14.2;
commitid	jjw7cAwgyKq7RfKz;

1.1.14.2
date	2017.03.20.06.57.01;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.1.16.1
date	2017.01.31.14.33.54;	author bouyer;	state dead;
branches;
next	1.1.16.2;
commitid	dUG7nkTKALCadqOz;

1.1.16.2
date	2017.04.21.16.53.13;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.1.20.1
date	2019.06.12.10.32.00;	author martin;	state Exp;
branches;
next	;
commitid	PJR2ZrMMmyeSZSqB;

1.1.26.1
date	2019.01.18.08.50.11;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.1.28.1
date	2019.06.10.22.05.29;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;


desc
@@


1.2
log
@add 'check' target to toplevel makefile.

fix the t11.out output now that CGI parsing works better.
@
text
@HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 194
Server: bozohttpd/20181215
Allow: GET, HEAD, POST

<html><head><title>404 Not Found</title></head>
<body><h1>404 Not Found</h1>
cgi-bin/echo.bat: <pre>This item has not been found</pre>
<hr><address><a href="// /"> </a></address>
</body></html>
@


1.1
log
@- fix a bug in cgi processing.  from Dennis Lindroos.
- add a testcase for this, and expand test-simple to handle additional
  args to bozohttpd for eg, cgi-bin setting.
- fix objdir bugs in the testsuite.
@
text
@d2 10
@


1.1.20.1
log
@Pull up the following revisions (via patch) requested by mrg in ticket #1281:

	libexec/httpd/CHANGES			1.31-1.40
	libexec/httpd/Makefile			1.28
	libexec/httpd/auth-bozo.c		1.23-1.24
	libexec/httpd/bozohttpd.8		1.75-1.79
	libexec/httpd/bozohttpd.c		1.100-1.113
	libexec/httpd/bozohttpd.h		1.58-1.60
	libexec/httpd/cgi-bozo.c		1.46-1.48
	libexec/httpd/daemon-bozo.c		1.20-1.21
	libexec/httpd/dir-index-bozo.c		1.29-1.32
	libexec/httpd/ssl-bozo.c		1.26
	libexec/httpd/testsuite/Makefile	1.12-1.13
	libexec/httpd/testsuite/t11.out		1.2
	libexec/httpd/testsuite/test-bigfile	1.6
	libexec/httpd/testsuite/test-simple	1.6


Don't display special files in the directory index.  They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
  being added to the prior total.)
  however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s).  If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
@
text
@a1 10
Content-Type: text/html
Content-Length: 194
Server: bozohttpd/20181215
Allow: GET, HEAD, POST

<html><head><title>404 Not Found</title></head>
<body><h1>404 Not Found</h1>
cgi-bin/echo.bat: <pre>This item has not been found</pre>
<hr><address><a href="// /"> </a></address>
</body></html>
@


1.1.28.1
log
@Sync with HEAD
@
text
@a1 10
Content-Type: text/html
Content-Length: 194
Server: bozohttpd/20181215
Allow: GET, HEAD, POST

<html><head><title>404 Not Found</title></head>
<body><h1>404 Not Found</h1>
cgi-bin/echo.bat: <pre>This item has not been found</pre>
<hr><address><a href="// /"> </a></address>
</body></html>
@


1.1.26.1
log
@Synch with HEAD
@
text
@a1 10
Content-Type: text/html
Content-Length: 194
Server: bozohttpd/20181215
Allow: GET, HEAD, POST

<html><head><title>404 Not Found</title></head>
<body><h1>404 Not Found</h1>
cgi-bin/echo.bat: <pre>This item has not been found</pre>
<hr><address><a href="// /"> </a></address>
</body></html>
@


1.1.16.1
log
@file t11.out was added on branch bouyer-socketcan on 2017-04-21 16:53:13 +0000
@
text
@d1 1
@


1.1.16.2
log
@Sync with HEAD
@
text
@a0 1
HTTP/1.1 200 OK
@


1.1.14.1
log
@file t11.out was added on branch pgoyette-localcount on 2017-03-20 06:57:01 +0000
@
text
@d1 1
@


1.1.14.2
log
@Sync with HEAD
@
text
@a0 1
HTTP/1.1 200 OK
@


1.1.12.1
log
@file t11.out was added on branch netbsd-7-nhusb on 2017-03-13 07:41:25 +0000
@
text
@d1 1
@


1.1.12.2
log
@Sync with netbsd-7-1-RELEASE
@
text
@a0 1
HTTP/1.1 200 OK
@


1.1.10.1
log
@file t11.out was added on branch netbsd-6 on 2017-03-07 07:25:19 +0000
@
text
@d1 1
@


1.1.10.2
log
@Pull up following revision(s) (requested by mrg in ticket #1437):
	libexec/httpd/CHANGES: up to 1.25
	libexec/httpd/bozohttpd.8: up to 1.65
	libexec/httpd/bozohttpd.c: up to 1.86
	libexec/httpd/bozohttpd.h: up to 1.47
	libexec/httpd/cgi-bozo.c: up to 1.37
	libexec/httpd/content-bozo.c: up to 1.14
	libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
	libexec/httpd/main.c: up to 1.16
	libexec/httpd/small/Makefile: up to 1.3
	libexec/httpd/testsuite/Makefile: up to 1.7
	libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
	libexec/httpd/testsuite/html_cmp: up to 1.5
	libexec/httpd/testsuite/t11.in: up to 1.1
	libexec/httpd/testsuite/t11.out: up to 1.1
	libexec/httpd/testsuite/test-bigfile: up to 1.4
	libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201.  Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
@
text
@a0 1
HTTP/1.1 200 OK
@


1.1.8.1
log
@file t11.out was added on branch netbsd-6-1 on 2017-03-07 07:21:54 +0000
@
text
@d1 1
@


1.1.8.2
log
@Pull up following revision(s) (requested by mrg in ticket #1437:
	libexec/httpd/CHANGES: up to 1.25
	libexec/httpd/bozohttpd.8: up to 1.65
	libexec/httpd/bozohttpd.c: up to 1.86
	libexec/httpd/bozohttpd.h: up to 1.47
	libexec/httpd/cgi-bozo.c: up to 1.37
	libexec/httpd/content-bozo.c: up to 1.14
	libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
	libexec/httpd/main.c: up to 1.16
	libexec/httpd/small/Makefile: up to 1.3
	libexec/httpd/testsuite/Makefile: up to 1.7
	libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
	libexec/httpd/testsuite/html_cmp: up to 1.5
	libexec/httpd/testsuite/t11.in: up to 1.1
	libexec/httpd/testsuite/t11.out: up to 1.1
	libexec/httpd/testsuite/test-bigfile: up to 1.4
	libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201.  Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
@
text
@a0 1
HTTP/1.1 200 OK
@


1.1.6.1
log
@file t11.out was added on branch netbsd-6-0 on 2017-03-07 07:16:08 +0000
@
text
@d1 1
@


1.1.6.2
log
@Pull up following revision(s) (requested by mrg in ticket #1437):
	libexec/httpd/CHANGES: up to 1.25
	libexec/httpd/bozohttpd.8: up to 1.65
	libexec/httpd/bozohttpd.c: up to 1.86
	libexec/httpd/bozohttpd.h: up to 1.47
	libexec/httpd/cgi-bozo.c: up to 1.37
	libexec/httpd/content-bozo.c: up to 1.14
	libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
	libexec/httpd/main.c: up to 1.16
	libexec/httpd/small/Makefile: up to 1.3
	libexec/httpd/testsuite/Makefile: up to 1.7
	libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
	libexec/httpd/testsuite/html_cmp: up to 1.5
	libexec/httpd/testsuite/t11.in: up to 1.1
	libexec/httpd/testsuite/t11.out: up to 1.1
	libexec/httpd/testsuite/test-bigfile: up to 1.4
	libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201.  Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
@
text
@a0 1
HTTP/1.1 200 OK
@


1.1.4.1
log
@file t11.out was added on branch netbsd-7 on 2017-02-12 22:07:17 +0000
@
text
@d1 1
@


1.1.4.2
log
@Pull up following revision(s) (requested by mrg in ticket #1357):
	libexec/httpd/CHANGES: revision 1.25
	libexec/httpd/bozohttpd.8: revisions 1.63-1.65
	libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
	libexec/httpd/bozohttpd.h: revision 1.47
	libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
	libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
	libexec/httpd/testsuite/Makefile: revision 1.7
	libexec/httpd/testsuite/html_cmp: revision 1.5
	libexec/httpd/testsuite/test-bigfile: revision 1.4
	libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
	libexec/httpd/testsuite/t11.in: revision 1.1
	libexec/httpd/testsuite/t11.out: revision 1.1
	libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
@
text
@a0 1
HTTP/1.1 200 OK
@


1.1.4.2.2.1
log
@Pull up the following revisions (via patch) requested by mrg in ticket #1699:

	libexec/httpd/CHANGES			1.31-1.40
	libexec/httpd/Makefile			1.28
	libexec/httpd/auth-bozo.c		1.23-1.24
	libexec/httpd/bozohttpd.8		1.75-1.79
	libexec/httpd/bozohttpd.c		1.100-1.113
	libexec/httpd/bozohttpd.h		1.58-1.60
	libexec/httpd/cgi-bozo.c		1.46-1.48
	libexec/httpd/daemon-bozo.c		1.20-1.21
	libexec/httpd/dir-index-bozo.c		1.29-1.32
	libexec/httpd/ssl-bozo.c		1.26
	libexec/httpd/testsuite/Makefile	1.12-1.13
	libexec/httpd/testsuite/t11.out 	1.2
	libexec/httpd/testsuite/test-bigfile	1.6
	libexec/httpd/testsuite/test-simple	1.6

Don't display special files in the directory index.  They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
  being added to the prior total.)
  however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s).  If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
@
text
@a1 10
Content-Type: text/html
Content-Length: 194
Server: bozohttpd/20181215
Allow: GET, HEAD, POST

<html><head><title>404 Not Found</title></head>
<body><h1>404 Not Found</h1>
cgi-bin/echo.bat: <pre>This item has not been found</pre>
<hr><address><a href="// /"> </a></address>
</body></html>
@


1.1.4.3
log
@Pull up the following revisions (via patch) requested by mrg in ticket #1699:

	libexec/httpd/CHANGES			1.31-1.40
	libexec/httpd/Makefile			1.28
	libexec/httpd/auth-bozo.c		1.23-1.24
	libexec/httpd/bozohttpd.8		1.75-1.79
	libexec/httpd/bozohttpd.c		1.100-1.113
	libexec/httpd/bozohttpd.h		1.58-1.60
	libexec/httpd/cgi-bozo.c		1.46-1.48
	libexec/httpd/daemon-bozo.c		1.20-1.21
	libexec/httpd/dir-index-bozo.c		1.29-1.32
	libexec/httpd/ssl-bozo.c		1.26
	libexec/httpd/testsuite/Makefile	1.12-1.13
	libexec/httpd/testsuite/t11.out 	1.2
	libexec/httpd/testsuite/test-bigfile	1.6
	libexec/httpd/testsuite/test-simple	1.6

Don't display special files in the directory index.  They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
  being added to the prior total.)
  however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s).  If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
@
text
@a1 10
Content-Type: text/html
Content-Length: 194
Server: bozohttpd/20181215
Allow: GET, HEAD, POST

<html><head><title>404 Not Found</title></head>
<body><h1>404 Not Found</h1>
cgi-bin/echo.bat: <pre>This item has not been found</pre>
<hr><address><a href="// /"> </a></address>
</body></html>
@


1.1.2.1
log
@file t11.out was added on branch netbsd-7-0 on 2017-02-12 21:59:45 +0000
@
text
@d1 1
@


1.1.2.2
log
@Pull up following revision(s) (requested by mrg in ticket #1357):
	libexec/httpd/CHANGES: revision 1.25
	libexec/httpd/bozohttpd.8: revisions 1.63-1.65
	libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
	libexec/httpd/bozohttpd.h: revision 1.47
	libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
	libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
	libexec/httpd/testsuite/Makefile: revision 1.7
	libexec/httpd/testsuite/html_cmp: revision 1.5
	libexec/httpd/testsuite/test-bigfile: revision 1.4
	libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
	libexec/httpd/testsuite/t11.in: revision 1.1
	libexec/httpd/testsuite/t11.out: revision 1.1
	libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
@
text
@a0 1
HTTP/1.1 200 OK
@


1.1.2.3
log
@Pull up the following revisions (via patch) requested by mrg in ticket #1699:

	libexec/httpd/CHANGES			1.31-1.40
	libexec/httpd/Makefile			1.28
	libexec/httpd/auth-bozo.c		1.23-1.24
	libexec/httpd/bozohttpd.8		1.75-1.79
	libexec/httpd/bozohttpd.c		1.100-1.113
	libexec/httpd/bozohttpd.h		1.58-1.60
	libexec/httpd/cgi-bozo.c		1.46-1.48
	libexec/httpd/daemon-bozo.c		1.20-1.21
	libexec/httpd/dir-index-bozo.c		1.29-1.32
	libexec/httpd/ssl-bozo.c		1.26
	libexec/httpd/testsuite/Makefile	1.12-1.13
	libexec/httpd/testsuite/t11.out 	1.2
	libexec/httpd/testsuite/test-bigfile	1.6
	libexec/httpd/testsuite/test-simple	1.6

Don't display special files in the directory index.  They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
  being added to the prior total.)
  however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s).  If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
@
text
@a1 10
Content-Type: text/html
Content-Length: 194
Server: bozohttpd/20181215
Allow: GET, HEAD, POST

<html><head><title>404 Not Found</title></head>
<body><h1>404 Not Found</h1>
cgi-bin/echo.bat: <pre>This item has not been found</pre>
<hr><address><a href="// /"> </a></address>
</body></html>
@


