1685e9ca66Changes regarding the new ConnectPort directive.
Robert James Kaes
2002-04-12 17:01:07 +0000
ecb249f424Added code to support the new ConnectPort directive which is needed to improve security of the tinyproxy system. This new directive allows the admin to block CONNECT methods to illegal ports.
Robert James Kaes
2002-04-12 17:00:42 +0000
660e4d5687Added the support code to process a ConnectPort configuration directive.
Robert James Kaes
2002-04-12 16:59:37 +0000
eb1230e841Added the description and intial settings for the ConnectPort directive.
Robert James Kaes
2002-04-12 16:59:06 +0000
f1a451faeaAdded a write_via_header() function which is now used in both header processing functions. Also, added a list of headers to drop in the process server header functions.
Robert James Kaes
2002-04-12 03:09:04 +0000
c6d6ef0fd9This commit was manufactured by cvs2svn to create tag 'rel_1_5_0pre5'.
1.5.0pre5
cvs2svn
2002-04-11 20:45:57 +0000
604785be66Bumped up the pre-version number.
Robert James Kaes
2002-04-11 20:45:56 +0000
b18070b268Changes to remove_connection_headers(), relay_connection(), process_client_headers(), and process_server_headeers().
Robert James Kaes
2002-04-11 20:45:10 +0000
85a82af5f5Did a bit of consolidation by moving code into remove_connection_headers() and added the get_content_length() function.
Robert James Kaes
2002-04-11 20:44:15 +0000
ce06f27a35Added the remote_content_length variable to store the number of bytes the remote server is supposed to be transmiting to the client.
Robert James Kaes
2002-04-11 20:27:51 +0000
52fa476b21Replaced calls to AC_LIBOBJ to an ADDITIONAL_OBJECTS variable (since it's not being used with src/Makefile.am). Also, rewrote the REGEX test to better confirm to the autoconf standard.
Robert James Kaes
2002-04-11 02:57:20 +0000
ed30d9d329Changed in src/Makefile.am
Robert James Kaes
2002-04-10 21:52:07 +0000
abdfa8b2daRemoved the dependency on LIBOBJS and instead use the ADDITIONAL_OBJECTS variable in conjunction with _DEPENDENCIES and _LDADD. The change here makes filter a "required" module in the sense that it will always be compiled (to make sure it doesn't get out of date), but it will conditionally included in the object file.
Robert James Kaes
2002-04-10 21:51:01 +0000
bda245f881This commit was manufactured by cvs2svn to create tag 'rel_1_5_0pre4'.
1.5.0pre4
cvs2svn
2002-04-10 19:10:08 +0000
448a1b222dBumped up the pre-version release number and removed the AC_FUNC_MEMCMP macro.
Robert James Kaes
2002-04-10 19:10:07 +0000
e3e3020c00Removed the test for lstat() since it wants to add a lstat.o dependancy. I really need to got through the configure.ac file and figure out what _really_ needs to be tested for.
Robert James Kaes
2002-04-10 17:30:08 +0000
a903b6d997Added an extra new line at the end of the file to quiet picky compilers. :)
Robert James Kaes
2002-04-10 17:29:18 +0000
4fa5cef491The malloc/free functions should be in stdlib.h, but if we can't find stdlib.h then try including malloc.h. Maybe this will allow clean compiling on some platforms.
Robert James Kaes
2002-04-09 22:02:05 +0000
5a2d654b11This commit was manufactured by cvs2svn to create tag 'rel_1_5_0pre3'.
1.5.0pre3
cvs2svn
2002-04-09 20:07:11 +0000
fb616011efMore changes in the ChangeLog :)
Robert James Kaes
2002-04-09 20:07:10 +0000
eef4559783Removed the compare_header() function since it's been replaced by a call the anonymous_search().
Robert James Kaes
2002-04-09 20:06:24 +0000
0c5bd57698Added more include logic code to be more portable.
Robert James Kaes
2002-04-09 20:05:15 +0000
7409281e34Replaced the internally used linked list with a call to the hashmap module. Code reuse is a good thing.
Robert James Kaes
2002-04-09 20:04:39 +0000
607e4c4c6cFixed up the problem with the "-lc_r" inclusion code. _Really_ fixed up the problem with compiling under OpenBSD. Bumped up the version number.
Robert James Kaes
2002-04-09 20:04:05 +0000
3c631c6e5cJames Flemer cleaned up the make_netmask() function to remove the static table. Very nice.
Robert James Kaes
2002-04-09 19:11:09 +0000
b3a5b17b7dBumped up the version number.
Robert James Kaes
2002-04-09 16:32:39 +0000
7e6d2bf451New changes to configure.ac, hashmap.c, and vector.c
Robert James Kaes
2002-04-09 16:32:22 +0000
2f54303d98Cleaned up the include lines to be slightly more portable (I hope.)
Robert James Kaes
2002-04-09 16:28:13 +0000
3a787ecbfaSmall changes to conform to the new Autoconf standards. Also, added a test for the OpenBSD system which prevents the inclusion of the malloc.h header (the functions are actually defined in stdlib.h)
Robert James Kaes
2002-04-09 16:27:34 +0000
aa8b9696f0This commit was manufactured by cvs2svn to create tag 'rel_1_5_0pre1'.
1.5.0pre1
cvs2svn
2002-04-09 01:45:38 +0000
54a84434fcChanged the version number to reflect the 1.5.0 pre-releases
Robert James Kaes
2002-04-09 01:45:37 +0000
64e28312dcNew news for the 1.5.0 release.
Robert James Kaes
2002-04-09 01:45:07 +0000
6f06485dbdUpdated the description to include the "SSL" fact.
Robert James Kaes
2002-04-09 01:44:42 +0000
eb78e5e1f4Added the cancelation setting to make sure the thread stops immediately.
Robert James Kaes
2002-04-09 00:37:43 +0000
0d66719c5aJust moved the looping code from main() into thread_main_loop().
Robert James Kaes
2002-04-08 21:35:10 +0000
55320587f3This commit was manufactured by cvs2svn to create tag 'rel_1_4_4pre1'.
1.4.4pre1
cvs2svn
2002-04-07 21:37:08 +0000
bf82c863bcJust a variable name change to make it easier to read.
Robert James Kaes
2002-04-07 21:37:07 +0000
1d52d9d510Updated the copyright notice.
Robert James Kaes
2002-04-07 21:36:39 +0000
fb736ec3fbA _tonne_ of changes. It would almost be easier to just read the source itself to find out all the changes. Changed the process_client_header() function to use the hashmap and vector modules. I've made this change to better handle the Connection header. The Connection header, it it's present, lists all the headers which should _not_ be transmitted any further along. An HTTP/1.1 proxy must respect this.
Robert James Kaes
2002-04-07 21:35:59 +0000
5e9aa90009Update the list of source code files to include the vector and hashmap files.
Robert James Kaes
2002-04-07 21:33:38 +0000
97a72783f5Cleaned up some of the code to handle errors better. Also, a little bit easier to read in the variable department.
Robert James Kaes
2002-04-07 21:32:01 +0000
c654bc14d9Changed the version number down to 1.4.4pre1 (from the more ambitious 1.5.0pre1)
Robert James Kaes
2002-04-07 21:31:15 +0000
6edba0dfa6Updated the changelog information.
Robert James Kaes
2002-04-07 21:30:30 +0000
5b3658b122A hashmap implementation. I use this for storing the headers from the client.
Robert James Kaes
2002-04-07 21:30:02 +0000
54f369a734Added the vector module which is a vector implementation. I use it in the hashmap implementation.
Robert James Kaes
2002-04-07 21:29:23 +0000
e70b98252aAdded define check for XTINYPROXY_ENABLE. Although, I'm not sure if this is the correct way to do this, since grammar.c probably doesn't get recomplied even if config.h is changed. Must look into this more.
Robert James Kaes
2002-04-02 17:17:30 +0000
daf90db115Update to reflect changes to configure.ac
Robert James Kaes
2002-04-02 17:00:29 +0000
194435acc1Patch from James Flemer which: * allows the --disable-* options to work * prevents -lc_r from being included on FreeBSD machines
Robert James Kaes
2002-04-02 16:58:36 +0000
1819c0f818Added code to check for "errors" from the accept call in thread_main() and also a new thread_kill_threads() function which should cancel all threads when the main thread is being closed.
Robert James Kaes
2002-01-25 00:01:45 +0000
388920bc53Added code which checks to see if the user has signalled that tinyproxy should be closed.
Robert James Kaes
2002-01-08 02:02:25 +0000
ea0d956a57Removed an unused header.
Robert James Kaes
2001-12-28 22:31:12 +0000
a0dee6c57fCheck for errors returned by the accept() function.
Robert James Kaes
2001-12-28 22:29:11 +0000
8cfe33fc4amore changes to utils.c, reqs.c, and sock.c
Robert James Kaes
2001-12-24 00:03:00 +0000
9520866ab3Changed send_http_message() to use the write_message() function. Changed httperr() to use the same concept as the write_message() function. Still haven't figured out how to combine the code.
Robert James Kaes
2001-12-24 00:02:32 +0000
b10221fa07Added the write_message() function (from reqs.c)
Robert James Kaes
2001-12-24 00:01:32 +0000
475e526a48Moved write_message() into sock.c because I'm using it in other places.
Robert James Kaes
2001-12-24 00:01:02 +0000
831b00dc7aMade the error message regarding the Idle timeout more verbose, and changed the level to WARNING.
Robert James Kaes
2001-12-23 22:00:36 +0000
c3124815a1Cleaned up the code which sends the "Via" header. It now uses write_message().
Robert James Kaes
2001-12-23 21:55:08 +0000
b68354a9daAdd a pre-processor test around the sys/types.h header file, to make sure it's available before we try to include it.
Robert James Kaes
2001-12-23 18:44:02 +0000
4ed73b6f07Fixed up the order of some of the includes to cope with OpenBSD. Also, test for the MSG_NOSIGNAL define.
Robert James Kaes
2001-12-23 03:28:03 +0000
d6e5285e95Updated the copyright notice.
Robert James Kaes
2001-12-20 04:48:52 +0000
93f0406b7eCreated the CHECK_CRLF() macro to handle the tests for the appropriate control characters in a string.
Robert James Kaes
2001-12-20 04:48:32 +0000
7240af4333Changed the calls to write() to send() so that we can use send(..., MSG_NOSIGNAL) and not get signals sent to the process. (easier for debugging and the system doesn't need to worry about signals.)
Robert James Kaes
2001-12-19 20:41:28 +0000
63a1fa96ccRemoved duplicate code from process_server_headers() and removed the calls to strlen(); readline() already returns the length of the string, so use that instead.
Robert James Kaes
2001-12-19 20:40:23 +0000
e964cf0d35Damn---removed the debugging code from write_message().
Robert James Kaes
2001-12-19 05:20:01 +0000
5140f01d5cOpps! Fixed a problem with negative numbers. :)
Robert James Kaes
2001-12-19 05:19:03 +0000
56b541d76bRedefined HTTP_LINE_LENGTH to be based on MAXBUFFSIZE (and set to around 16 KB.)
Robert James Kaes
2001-12-19 05:13:40 +0000
4a257edd0aUpdate the reqs.c file.
Robert James Kaes
2001-12-19 05:10:46 +0000
17103bf8feUpdated the list of headers to ignore.
Robert James Kaes
2001-12-18 05:01:03 +0000
faf655c5dbAdded the code to log the request when in tunnelling mode.
Robert James Kaes
2001-12-17 19:10:56 +0000
a62834808aAdded the code the log the request when in tunnelling mode.
Robert James Kaes
2001-12-17 19:10:37 +0000
4916c78ad5Removed the version test for the bison.
Robert James Kaes
2001-12-17 19:10:06 +0000
f8c8ae59c0This commit was manufactured by cvs2svn to create tag 'rel_1-5-0_pre2'.
1.5.0pre2
cvs2svn
2001-12-17 00:28:29 +0000
71ad9f439fBumped the version number.
Robert James Kaes
2001-12-17 00:28:28 +0000
15a7581e30Updated the changelog.
Robert James Kaes
2001-12-17 00:12:15 +0000
9448787ff2Added UPSTREAM_CONFIGURED() macro to help clean up the code.
Robert James Kaes
2001-12-17 00:11:32 +0000
fdb4952e5fAdded the assert() calls to safe_write() to make sure the arguments are sane.
Robert James Kaes
2001-12-17 00:00:24 +0000
6919faea77Removed reference to ternary.h
Robert James Kaes
2001-12-15 20:08:24 +0000
997d3daa65No longer need this system since it was only being used in the DNS caching section and the anonymous header section. Once I had removed the DNS caching, the ternary tree system was overkill for the anonymous header code. Replaced in the anonymous header section with a simple linked list.
Robert James Kaes
2001-12-15 20:07:45 +0000
b969ed4302Changed safe_write() to fully send all the data in the buffer it was passed. Also safe_write() and safe_read() now use char pointer buffers rather than the void pointer style.
Robert James Kaes
2001-12-15 20:04:04 +0000
cad9a5d11bSwitched from using the ternary tree to a simple linked list.
Robert James Kaes
2001-12-15 20:02:59 +0000
b811c2fbf8Removed the references to ternary.c and ternary.h
Robert James Kaes
2001-12-15 20:02:26 +0000
3f4a052c85Addtional function checks.
Robert James Kaes
2001-12-15 20:02:03 +0000
70970e832aUpdates for safe_write() and anonymous section.
Robert James Kaes
2001-12-15 20:01:42 +0000
75ab2c8de3Removed the include "dnscache.h" header file.
Robert James Kaes
2001-12-15 06:02:16 +0000
e10d005f81Added the lookup_domain() function which replaces the DNS caching system.
Robert James Kaes
2001-12-15 06:00:03 +0000
a4934e2232Added the host name lookup code (which use to be in the DNS caching system.)
Robert James Kaes
2001-12-15 05:58:30 +0000
b15be9de3eRemoved the references to dnscache.c and dnscache.h
Robert James Kaes
2001-12-15 05:57:40 +0000
bf18ec5adcRemoved the DNS caching system because tinyproxy did not determine the TTL of the host names being resolved, which is not recommended by RFC2616. Basically, if a HTTP client doesn't respect the TTL is should not be caching the address since it leaves itself open to DNS spoofing attacks.
Robert James Kaes
2001-12-15 05:57:13 +0000
e0694a8f6eAdded support for the <pthreads.h> header.
Robert James Kaes
2001-11-26 05:23:49 +0000
09fdf9af74Increased the maximum buffer size to 96 KB
Robert James Kaes
2001-11-26 01:39:53 +0000
a03a1d3847Fixed a problem with not buffering more than 2K (which is obviously a problem. :)
Robert James Kaes
2001-11-26 01:39:07 +0000
4a1b2d534aFixed a problem with the quoting.
Robert James Kaes
2001-11-26 01:38:28 +0000
7c4569624dUpdates relating to the fixes to buffering code in read_buffer().
Robert James Kaes
2001-11-26 01:31:26 +0000
fa193dcd22send_message changed to send_response_message in the conn_s structure.
Robert James Kaes
2001-11-25 22:08:11 +0000
f8b61da4aeAdded tests for _every_ header to make sure they are actually present on the system.
Robert James Kaes
2001-11-25 22:07:36 +0000
2f4ccc04aeAdded an additional test to make sure the <regex.h> header is actually present on the system.
Robert James Kaes
2001-11-25 22:06:54 +0000
5e17d0736eRemoved some of the members of the structures and renamed a few others.
Robert James Kaes
2001-11-25 22:06:20 +0000
e9cfd1f82emakenewline() now copies the data into the structure rather than just storing the pointer to the data. add_to_buffer() is now exported. Renamed writebuff() and readbuff() to write_buffer() and read_buffer().
Robert James Kaes
2001-11-25 22:05:42 +0000
b0748328d7More changes.
Robert James Kaes
2001-11-25 22:03:52 +0000