summaryrefslogtreecommitdiff
path: root/libexec/httpd
AgeCommit message (Collapse)Author
2015-12-28rename bozo_err/bozo_warn/bozo_asprintf to bozoerr/etc.mrg
new rule is that function that mirror libc-style functions get no underscore.
2015-12-27several clean ups:mrg
- bozostrdup() gains a request parameter, and uses it to determine what sort of error handling is required - bozo_strdup() dies - size_arrays() reduced slightly, pushing error handling into the caller - convert to size_t for some array indices - bozo_set_pref() and bozo_init_prefs() gain httpd parameters - apply a bunch of manual CSE to vastly reduce the number of times the string "request->hr_httpd" appears. - CGI parse_header() takes a request not httpd now XXX: lua glue updated to call bozo_init_prefs() with htttpd parameter, but i'm only guessing here.
2015-12-27fix running the testsuite from the build treemrg
2015-12-12Introduce bozo_strdup and bozo_asprintf to add error checking and reducechristos
code duplication. Note that bozo_strdup is different that bozostrdup; the _ routines exit loging error to syslog or stderr, whereas the non _ routines send error responses to the http client.
2015-12-12- restrict the default list of ciphers to something more securechristos
- restrict ssl options From Travis Paul
2015-12-07Improve the httpd(8) printenv.lua Lua examplekamil
Stop using Lua builtin print function and replace them with http.* ones. httpd.print and http.write wraps SSL support when needed. Print http headers, without them browser may interpret page as raw text. No need to hardcode prefix path in the form. Add comments for a user with tips how to use this script. Patch by Travis Paul Closes PR misc/50502
2015-11-29Bump date for previouskamil
2015-11-29Synchronize SYNOPSIS with realitykamil
2015-11-29Remove nonexistent option z: in the getopt(3) callkamil
2015-10-31handle asprintf errors consistently.christos
2015-10-30fix wrong variablechristos
2015-10-30simplifychristos
2015-10-30- don't use alloca and then check if alloca returns null and then try tochristos
free it. Allocating from the stack does not return null, and freeing it will have unpredictable results. use malloc instead. - now we are using malloc remove -Wno-stack-protector kludge
2015-10-30Fix build with "USE_SSP" set to "yes".tron
2015-10-28* add CGI support for ~user translation (-E switch)shm
* add redirects to ~user translation * fix bugs around ~user translation * add schema detection for absolute redirects * fixed few memory leaks * bunch of minor tweaks * removed -r support * smarter redirects OK mrg@
2015-10-25s/USE_NBUTIL/HAVE_NBUTIL_H/, to match the Makefile.mrg
fixes a merge problem in introduced when merging the QNX patches. from Jan Danielsson.
2015-08-27s/dirname/dirpath/ to avoid potentially shadowing dirname(3).mrg
2015-08-13Remove trailing space in boast.wiz
2015-08-13Extend AUTHORS section. Nobody likes a braggart.shm
OK mrg@
2015-08-05on QNX, use nbutil.h.mrg
2015-07-16Fix handling path with multiple slashes at the beginningshm
Fix redirections escaping for user support OK mrg@
2015-07-09Remove d_namelen as it's an BSD extension. Fix building bozohttpd on SunOS.shm
OK mrg@
2015-07-04fix memory leaks on error; found by brainy.christos
2015-05-02fix content type handling to not hard code (wrong) values for length,mrg
but just call strlen() as needed. call this 20150501. reported by Jan Danielsson for ".svg".
2015-04-19Fix deref "command" after "free(file)", from KIYOHARA Takashichristos
2015-04-16install as bozohttpd/bozohttpd.8 as well as httpd.mrg
2015-03-20copyright maintenance, note shm@ in the manual and update the CHANGESmrg
for recent changes. call this 20150320.
2015-03-20don't quote /. it doesn't work. this should fix PR#49765.mrg
2015-01-27spit out a 403 not just when an open() fails with EPERM, but withsnj
EACCES as well.
2014-12-26more for the previous: make sure [i - 1] can never go negative.mrg
2014-12-26properly handle ilen = 0 case, which could lead to array underflow.mrg
pointed out by Maxime Villard.
2014-12-25Bring this man page back to this decade.wiz
2014-12-25call this 20141225.mrg
2014-12-13add .ts and .vob suffixes.mrg
2014-11-21Fixed memory leak in case of multiple authentication headers sent by theshm
client. OK mrg@
2014-11-21Fixed off-by-one in virtualhost processing. Previous code was checking ifshm
Host header is a prefix of any existing vhost. This behaviour might be used to uncover existing vitual hosts from the remote. OK @mrg
2014-10-10don't truncate file sizes to 32 bits for directory indexes.mrg
2014-08-15NUL terminate a string.mbalmer
2014-07-19lua: updated from 5.1 to 5.3 work3lneto
* lua(1): - changed lua_Integer to intmax_t - updated distrib/sets/lists and etc/mtree - updated bsd.lua.mk - fixed bozohttpd (lua-bozo.c) - compatibilized bindings: gpio, sqlite * lua(4): - removed floating-point and libc dependencies using '#ifndef _KERNEL' - fixed division by zero and exponentiation - libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct() - acpica: removed isprint() from acnetbsd.h - libc: moved strcspn.c, strpbrk.c and strspn.c to common - removed stub headers - compatibilized bindings: luapmf, luasystm * reorganized luaconf.h * updated doc/CHANGES and doc/RESPONSIBLE
2014-07-17call this 20140717.mrg
2014-07-17rewrite much of the SSL code:mrg
- handle errors in many places they weren't properly - make SSL_accept() an error the main code notices - expand bozo_ssl_err() to include bozo_ssl_warn(), bozo_clear_ssl_queue() - remove empty bozo_ssl_flush()
2014-07-17link against main.c and ssl-bozo.c (which provides the IO backend.)mrg
2014-07-17use const and remove unnecessary braces.mrg
2014-07-16make a minor output change match again.mrg
2014-07-16make -t chroot option available always again.mrg
2014-07-08call this bozohttpd 20140708, and add/fix a couple of CHANGES entries.mrg
2014-07-08avoid truncating a directory path when using snprintf(), but insteadmrg
detect and return an error. found and fixed by shm@netbsd.
2014-07-08make export-distfile target slightly more stable.mrg
2014-07-02Handle ENAMETOOLONG to return 404 error instead of 500.shm
OK mrg@
2014-07-01* bozo_clean_request free(3) clean up (removed needless checks)shm
* HEAD method no longer returns response body on error * fixed bug with multiple bozo_http_error calls caused by fix_url_percent OK @mrg