tinyproxy/src
rofl0r 48860bbe26 refactor html-error so send_http_headers() can take extra arg
we already required an extra argument inside the headers sent
for 401 and 407 error responses, move those to sent_http_error_message()
and refactor send_http_headers() to always take the extra argument.
in calling sites where the extra arg isn't needed, use "".
2021-03-28 20:24:23 +01:00
..
.gitignore Removed obsolete ignore rules 2008-06-19 21:33:20 +05:30
acl.c acl: fix regression using ipv6 with netmask 2020-09-30 19:23:34 +01:00
acl.h make acl lookup 450x faster by using sblist 2020-09-07 22:09:35 +01:00
anonymous.c replace leftover users of hashmap with htab 2020-09-15 23:12:00 +01:00
anonymous.h replace leftover users of hashmap with htab 2020-09-15 23:12:00 +01:00
base64.c move base64 code into own file 2018-02-06 16:57:02 +00:00
base64.h move base64 code into own file 2018-02-06 16:57:02 +00:00
basicauth.c basicauth: use sblist 2020-09-16 02:39:09 +01:00
basicauth.h basicauth: use sblist 2020-09-16 02:39:09 +01:00
buffer.c buffer: fix log message in read_buffer(). 2013-11-23 12:21:59 +01:00
buffer.h Convert tabs to spaces 2008-12-08 13:39:44 +00:00
child.c child_kill_children(): use method that actually works 2020-09-17 21:24:45 +01:00
child.h listen_addrs: use sblist 2020-09-16 02:39:09 +01:00
common.h speed up build by only including regex.h where needed 2020-09-30 05:13:45 +01:00
conf-tokens.c add autoconf test and fallback code for systems without gperf 2020-09-16 23:04:12 +01:00
conf-tokens.gperf speed up big config parsing by 2x using gperf 2020-09-16 21:01:02 +01:00
conf-tokens.h speed up big config parsing by 2x using gperf 2020-09-16 21:01:02 +01:00
conf.c Allow multiple Bind directives. 2020-10-19 20:08:31 +01:00
conf.h Allow multiple Bind directives. 2020-10-19 20:08:31 +01:00
connect-ports.c connect_ports: use sblist 2020-09-16 02:39:09 +01:00
connect-ports.h connect_ports: use sblist 2020-09-16 02:39:09 +01:00
conns.c refactor conns.[ch], put conn_s into child struct 2020-09-15 23:12:00 +01:00
conns.h refactor conns.[ch], put conn_s into child struct 2020-09-15 23:12:00 +01:00
daemon.c daemon.c: fix #if NDEBUG --> #ifdef NDEBUG 2009-11-10 17:59:40 +01:00
daemon.h Reformat code to GNU coding style 2008-12-01 15:01:11 +00:00
filter.c speed up build by only including regex.h where needed 2020-09-30 05:13:45 +01:00
filter.h filter: reduce memory usage, fix OOM crashes 2020-09-05 19:42:34 +01:00
heap.c simplify codebase by using one thread/conn, instead of preforked procs 2019-12-21 00:43:45 +00:00
heap.h simplify codebase by using one thread/conn, instead of preforked procs 2019-12-21 00:43:45 +00:00
hsearch.c orderedmap: fix memory leak when using orderedmap_remove() 2021-03-14 16:06:10 +00:00
hsearch.h orderedmap: fix memory leak when using orderedmap_remove() 2021-03-14 16:06:10 +00:00
html-error.c refactor html-error so send_http_headers() can take extra arg 2021-03-28 20:24:23 +01:00
html-error.h refactor html-error so send_http_headers() can take extra arg 2021-03-28 20:24:23 +01:00
http-message.c http-message: fix UB passing long to format string expecting int 2020-10-19 20:33:04 +01:00
http-message.h http_message_add_headers: make argument num_headers unsigned 2009-08-07 09:24:32 +02:00
log.c log: replace non-mt-safe localtime() with localtime_r() 2020-10-19 20:26:12 +01:00
log.h make send_stored_logs static 2018-02-25 18:35:34 +00:00
loop.c free() loop records too 2020-09-15 23:12:00 +01:00
loop.h free() loop records too 2020-09-15 23:12:00 +01:00
main.c change loglevel of "Not running as root" message to INFO 2020-09-30 05:19:16 +01:00
main.h remove duplicate code calling reload_config_file() 2020-01-15 16:35:43 +00:00
Makefile.am add conf-tokens.gperf to EXTRA_DIST 2020-09-27 15:55:23 +01:00
mypoll.c use poll() where available 2020-09-15 23:12:00 +01:00
mypoll.h tune error messages to show select or poll depending on what is used 2020-09-17 21:03:51 +01:00
network.c safe_write/read: take void* buffer for generic use 2017-12-04 11:33:01 +00:00
network.h safe_write/read: take void* buffer for generic use 2017-12-04 11:33:01 +00:00
orderedmap.c orderedmap: fix memory leak when using orderedmap_remove() 2021-03-14 16:06:10 +00:00
orderedmap.h save headers in an ordered dictionary 2020-09-15 23:11:59 +01:00
reqs.c reqs: fix UB passing ssize_t to format string expecting int 2020-10-19 20:30:10 +01:00
reqs.h refactor conns.[ch], put conn_s into child struct 2020-09-15 23:12:00 +01:00
reverse-proxy.c save headers in an ordered dictionary 2020-09-15 23:11:59 +01:00
reverse-proxy.h save headers in an ordered dictionary 2020-09-15 23:11:59 +01:00
sblist.c simplify codebase by using one thread/conn, instead of preforked procs 2019-12-21 00:43:45 +00:00
sblist.h simplify codebase by using one thread/conn, instead of preforked procs 2019-12-21 00:43:45 +00:00
sock.c Allow multiple Bind directives. 2020-10-19 20:08:31 +01:00
sock.h transparent: workaround old glibc bug on RHEL7 2020-09-18 12:12:14 +01:00
stats.c refactor html-error so send_http_headers() can take extra arg 2021-03-28 20:24:23 +01:00
stats.h Indent code to Tinyproxy coding style 2009-09-15 01:11:25 +05:30
text.c Indent code to Tinyproxy coding style 2009-09-15 01:11:25 +05:30
text.h Reformat code to GNU coding style 2008-12-01 15:01:11 +00:00
transparent-proxy.c transparent: workaround old glibc bug on RHEL7 2020-09-18 12:12:14 +01:00
transparent-proxy.h save headers in an ordered dictionary 2020-09-15 23:11:59 +01:00
upstream.c print linenumber from all conf-emitted warnings 2020-09-30 05:21:26 +01:00
upstream.h print linenumber from all conf-emitted warnings 2020-09-30 05:21:26 +01:00
utils.c Use correct format string for POSIX pid_t in pidfile_create() 2009-09-27 08:09:24 +05:30
utils.h Convert tabs to spaces 2008-12-08 13:39:44 +00:00