Commit Graph

  • b3943c21f2 (check_allowed_connect_ports): By default DENY any CONNECT requests unless explicitly allowed by a configuration directive. Robert James Kaes 2004-08-12 20:15:04 +0000
  • 28dd133623 (add_xtinyproxy_header): Removed the runtime error checking of the connptr->server_fd variable and moved it into an assert since we should never be called with invalid data. Also made the function an inline function since it's only called in one place. Robert James Kaes 2004-08-12 19:57:15 +0000
  • 924da17c17 Completely rewrote the ACL functionality. The new system is intended to handle IPv6 style addresses along with the existing IPv4 and string addresses. In addition, the hand-rolled "list" code has been replaced with a vector (code reuse.) Also, the code should be a little easier to understand (relatively speaking.) Robert James Kaes 2004-08-11 20:09:20 +0000
  • fd4b67bbb4 (strip_username_password): Removed one of the pointer variables since it's no longer needed. Reorganized the function to make it more obvious what was actually being done. Robert James Kaes 2004-08-11 02:49:05 +0000
  • badc7673d0 Merged in changes from 1.6.3 Robert James Kaes 2004-08-10 21:24:24 +0000
  • 877a09c384 This commit was manufactured by cvs2svn to create tag 'release_1_6_3'. 1.6.3 cvs2svn 2004-08-10 20:03:17 +0000
  • 1768fc0755 # Updated changelog to reflect that 1.6.3 is released today. Robert James Kaes 2004-08-10 20:03:16 +0000
  • bebc78a7e6 # Updated changelog Robert James Kaes 2004-08-10 15:34:48 +0000
  • 4a8c4d55f0 Close the standard file descriptors (stdin, stdout, and stderr) when compiling in production mode (no debugging information.) Robert James Kaes 2004-08-10 03:38:13 +0000
  • c6711d7d38 # Real update. The last changelog update also included updates from HEAD Robert James Kaes 2004-08-09 20:43:02 +0000
  • c120c62fd9 # Updated changelog Robert James Kaes 2004-08-09 18:52:23 +0000
  • 05ed84f04c # Updated version number Robert James Kaes 2004-08-09 18:48:48 +0000
  • 385fae593d [Fixes Bug 996518] Merged in a patch from Hans-Dieter that fixes a problem with upstream proxy support. Robert James Kaes 2004-08-06 16:56:55 +0000
  • cde61e2fac child_configure(): Change the "val" type to a signed integer. Robert James Kaes 2004-06-14 20:49:57 +0000
  • cc3a893f5a Changed the fields in the child_config_s structure to use regular signed integers since the servers_waiting variable is signed and therefore, all the tests must use signed arithmetic. Robert James Kaes 2004-06-14 20:08:12 +0000
  • 18df4910a4 Added the "BindSame" configure directive from Oswald Buddenhagen. This allows tinyproxy to respond to a request bound to the same interface that the request came in on. As Oswald explains: Robert James Kaes 2004-04-27 18:53:14 +0000
  • 3b961ec66b (init_stats): Fixed a memset bug, where the structure was not cleared properly. (The sizeof "struct stat" was being used rather than the proper "struct stat_s". On my system, "struct stat" is 88 bytes long, while "struct stat_s" is 20 bytes long. Quite a difference!) Robert James Kaes 2004-04-27 18:48:53 +0000
  • 095d0d0142 These files list all the other files that CVS should ignore. It makes looking at the CVS status information a little cleaner. Robert James Kaes 2004-04-27 18:28:45 +0000
  • 5ecd9157ce Converted the various socket functions to work with both IPv4 and IPv6 addresses. Robert James Kaes 2004-02-18 20:18:53 +0000
  • c21df1ea0f Added two functions: - get_ip_string() converts a binary network address into either a dotted-decimal IPv4 address, or a IPv6 hex-string - full_inet_pton() converts a numeric character string into an IPv6 network address (binary form). It's like the system inet_pton() function, but it will work with bot IPv4 and IPv6 character strings. Robert James Kaes 2004-02-18 20:17:18 +0000
  • 02893c3489 Rewrote the "early history" of the project, and added a section for "major" addition authors. Robert James Kaes 2004-02-17 19:49:54 +0000
  • aee5a63849 Removed unnecessary casts (mostly dealing with memory allocation.) I should never have added them in the first place. They don't really buy anything, and they can hide bugs. Robert James Kaes 2004-02-13 21:27:42 +0000
  • bf22966f55 (strip_return_port): Patch from "alex" to strip the port from the host string and return the port. I cleaned up and added error handling to the code, but it's basically "alex"'s fix. Robert James Kaes 2004-02-04 19:57:40 +0000
  • 1268c17fe2 This commit was manufactured by cvs2svn to create tag 'release_1_7_0'. 1.7.0 cvs2svn 2004-01-26 19:19:32 +0000
  • 47df93b8f3 # Updated change log Robert James Kaes 2004-01-26 19:19:31 +0000
  • 0a8e4e4d8d Added reverse proxy support from Kim Holviala. His comments regarding this addition follow: Robert James Kaes 2004-01-26 19:11:52 +0000
  • cd9c768c59 (upstream_add): Fixed a spelling mistake with "Nonsence" Robert James Kaes 2003-11-19 19:20:18 +0000
  • f2d846d057 Merged in changes from the 1.6.2 release. (Fixes for the filtering code and the HTML installation script.) Robert James Kaes 2003-10-17 16:11:00 +0000
  • 5bfcd5d30f This commit was manufactured by cvs2svn to create tag 'release_1_6_2'. 1.6.2 cvs2svn 2003-10-17 15:43:34 +0000
  • acb5026545 # Updated ChangeLog Robert James Kaes 2003-10-17 15:43:33 +0000
  • 53ad8ef067 # Bumped up the version number Robert James Kaes 2003-10-17 15:39:23 +0000
  • d475d44cc0 Removed a redundant "mkdir" command, since the $(mkinstalldirs) command handles it correctly. Robert James Kaes 2003-10-17 15:38:28 +0000
  • b1d126c4bb (filter_init): Fixed up the comment handling code. Closes bug 822226 [https://sourceforge.net/tracker/index.php?func=detail&aid=822226&group_id=2632&atid=102632] Robert James Kaes 2003-10-16 21:19:09 +0000
  • 27d93b1f08 Merged in missing $(DESTDIR) in tinyproxy-html-files rules bug fix from the stable branch. Robert James Kaes 2003-08-14 15:16:50 +0000
  • b8d7ee66a5 Added a missing $(DESTDIR) to the tinyproxy-html-files rule. Thanks to Ed Boraas for pointing this out. Robert James Kaes 2003-08-14 15:13:24 +0000
  • a13ca8271e Incorporated patches from Marc Silver to improve the readability and understandability of the documentation. Robert James Kaes 2003-08-07 16:50:55 +0000
  • d2098f638f tinyproxy no longer includes a fall-back regular expression library, so these files needed to be modified to only use the system's installed regular expression library. Robert James Kaes 2003-08-07 16:32:12 +0000
  • d72fa83245 Removed the included regular expression library, since it should come standard on any reasonably modern system. Robert James Kaes 2003-08-07 16:29:54 +0000
  • 7eb4eba381 # Merged in changes from the stable 1.6 branch. Robert James Kaes 2003-08-07 15:31:20 +0000
  • 3bcbcdace5 This commit was manufactured by cvs2svn to create tag 'release_1_6_1'. 1.6.1 cvs2svn 2003-08-06 20:52:09 +0000
  • 4f48cb16c7 # Bumped up the version number Robert James Kaes 2003-08-06 20:52:08 +0000
  • 074af84f63 # Updated changelog Robert James Kaes 2003-08-06 20:51:45 +0000
  • e04dd2ee69 # Misspelled the __cplusplus define. Robert James Kaes 2003-08-06 20:46:04 +0000
  • c315bce11b (debugging_realloc): Remove the assert on the ptr being NULL since a NULL pointer is allowed by the realloc() spec. Robert James Kaes 2003-08-06 20:44:09 +0000
  • 6a11a9c909 (child_main): Fixed an off-by-one error with the maxrequestsperchild variable. [Fix proposed by Yannick Koehler] Robert James Kaes 2003-08-06 20:23:06 +0000
  • 630b99334c Patch from Marc Silver to improve the readability and accuracy of the tinyproxy man page. Robert James Kaes 2003-08-05 21:14:43 +0000
  • fd23cd4aed # Fixed a comment to actually reflect what the function does. Robert James Kaes 2003-08-05 16:11:59 +0000
  • 26ad896676 Added the cookie header to the documented list of headers to allow through. Robert James Kaes 2003-08-05 16:11:06 +0000
  • a117ed9cb0 Included patches from Steven Young to use the hashmap functionality to manage the HTML error pages. It simplifies the source, and also make the object file smaller. Nice. Also added any casting from (void*) to ensure that the code compiles using a C++ compiler. Robert James Kaes 2003-08-01 00:14:34 +0000
  • 15870a9582 Added appropriate casts (void*) casts to allow the code to compile cleanly using a C++ compiler. Robert James Kaes 2003-07-31 23:44:52 +0000
  • bc77dfb492 (debugging_realloc): Removed the assert for the NULL pointer, since realloc() can take a NULL pointer, as defined by the realloc() man page. Robert James Kaes 2003-07-31 23:42:51 +0000
  • 5a2af49e58 Fixed the cast in both safefree() macros to compile cleaning using a C++ compiler. Robert James Kaes 2003-07-31 23:41:26 +0000
  • 8a6a94db0a # Fixed a preprocessor test (misspelled __cplusplus) Robert James Kaes 2003-07-31 23:40:16 +0000
  • 6aaa863432 Added appropriate casts from (void*) so that the code will compile cleanly with a C++ compiler. (Tested using GCC 3.3) Robert James Kaes 2003-07-31 23:38:28 +0000
  • ab02f47a29 # Bumped up the version number because of a maintenance release (to fix a problem with the scanner.c file. Robert James Kaes 2003-07-24 15:13:00 +0000
  • ee992e77b7 This commit was manufactured by cvs2svn to create tag 'release_1_6_0'. 1.6.0 cvs2svn 2003-07-14 17:45:13 +0000
  • 4beea1ac67 This commit was manufactured by cvs2svn to create branch 'release_1_6_patches'. cvs2svn 2003-07-14 17:45:12 +0000
  • 7115a37f23 # Updated ChangeLog Robert James Kaes 2003-07-14 17:45:11 +0000
  • a748265b50 # Bumped up version number. Robert James Kaes 2003-07-14 17:43:26 +0000
  • 7c96935552 (indicate_http_error): Added calls to va_end() before leaving the function. Robert James Kaes 2003-07-14 17:42:43 +0000
  • acd5eca58e This commit was manufactured by cvs2svn to create tag 'release_1_6_0rc3'. 1.6.0rc3 cvs2svn 2003-06-26 18:33:14 +0000
  • 09aa3d6409 # Updated the ChangeLog Robert James Kaes 2003-06-26 18:33:13 +0000
  • 717be92385 # Bumped up the version number and made sure to only add the debugging flags to flex if it really is flex. Robert James Kaes 2003-06-26 18:31:16 +0000
  • a4cd3eb9ec # Removed the debugging information. Robert James Kaes 2003-06-26 18:26:10 +0000
  • a8798e999b # Added debugging flags for the flex scanner. Robert James Kaes 2003-06-26 18:23:01 +0000
  • 1cb032a934 (upstream_add): Rewrote the function to actually handle the various types of upstream configurations correctly. Hopefully, the code is also a little clearer in it's implementation. Robert James Kaes 2003-06-26 18:19:57 +0000
  • 988f243286 # Removed the STRING_ADDRESS token since it was conflicting with the IDENTIFIER directive and also the keyword directives. Robert James Kaes 2003-06-26 18:17:09 +0000
  • db142b6e23 Modified the patterns to allow the new upstream directives to work as defined in the tinyproxy.conf documentation. Robert James Kaes 2003-06-26 18:16:09 +0000
  • 2736a19518 (debugging_free): Rather than assert on a NULL pointer, log the NULL pointer and return. Robert James Kaes 2003-06-26 18:14:13 +0000
  • de4ecfe26e This commit was manufactured by cvs2svn to create tag 'release_1_6_0rc2'. 1.6.0rc2 cvs2svn 2003-06-25 18:23:12 +0000
  • 93ac7d8824 # Bumped up the version number. Robert James Kaes 2003-06-25 18:23:11 +0000
  • 61a6ca82db # Updated the changelog Robert James Kaes 2003-06-25 18:22:37 +0000
  • ddcac5ae09 Added a test to define INADDR_NONE if it's not present. For example, SunOS (solaris 2.8) does not include this define. [Thank to Ben Hartshorne for pointing this out.] Robert James Kaes 2003-06-25 18:20:22 +0000
  • d2f5f5c564 Changed the calls to "ps" and "grep" to use a more portable syntax. Robert James Kaes 2003-06-25 18:18:19 +0000
  • 1e7b1ea10a This commit was manufactured by cvs2svn to create tag 'release_1_6_0rc1'. 1.6.0rc1 cvs2svn 2003-06-23 21:15:05 +0000
  • 66fc80e922 # Bumped up the version number. Robert James Kaes 2003-06-23 21:15:04 +0000
  • 8b8d3b1477 # Added a bit more description to describe where to look for the error HTML files. In the future the installation script should modify the tinyproxy.conf file. Robert James Kaes 2003-06-23 21:14:32 +0000
  • 1d13738a3b This commit was manufactured by cvs2svn to create tag 'release_1_6_0pre4'. 1.6.0pre4 cvs2svn 2003-06-20 18:01:27 +0000
  • 5ba1325ef5 # Updated ChangeLog Robert James Kaes 2003-06-20 18:01:26 +0000
  • 4c9141aac6 Removed the "ViaHeader" directive and replaced it with the "ViaProxyName" directive. The "Via" HTTP header is _required_ by the HTTP spec, so the code has been changed to always send the header. However, including the proxy's host name could be considered a security threat, so the "ViaProxyName" directive is used to set the token sent in the "Via" header. If the directive is not enabled the proxy's host name will be used. Robert James Kaes 2003-06-20 17:02:13 +0000
  • 0d3962f1f0 # Removed the HTML error suggestion since it's been implemented with Steven Young's patches. Added a suggestion for user authentication. Robert James Kaes 2003-06-19 16:45:58 +0000
  • b081019d5a (connect_to_upstream): Fixed an off-by-one error in the snprintf() call used to build the URL for the upstream proxy. [Patch suggested by David T. Pierso] Robert James Kaes 2003-06-06 16:14:50 +0000
  • c2240df616 Remove the -O2 optimization if debugging is enabled. Also, remove the -g option if the code does _not_ have debugging enabled. Robert James Kaes 2003-06-02 21:57:14 +0000
  • 7f8e4647f7 Included additional examples of how to configure the upstream proxy support for more selective proxying. Robert James Kaes 2003-06-02 21:56:00 +0000
  • 91e082671a (upstream_get): (upstream_add): Added support to allow ip addresses and networks to be used when matching an upstream proxy directive. [Code by Peter da Silva] Robert James Kaes 2003-06-02 21:55:14 +0000
  • ea50171a95 Changed the safefree() macro to make it safe to use a conditional statement, and also safe to use with a rvalue that has a side effect. [Bug fix recommended by Peter da Silva] Robert James Kaes 2003-05-31 23:04:15 +0000
  • 77ca1c8ce0 # Changed all the for calls to use the != test rather than < test. The change was recommended in the C/C++ User Journal magazine. Robert James Kaes 2003-05-31 23:02:21 +0000
  • 4c9003d1ef This commit was manufactured by cvs2svn to create tag 'release_1_6_0pre3'. 1.6.0pre3 cvs2svn 2003-05-30 16:27:58 +0000
  • 86c9d69086 # Updated ChangeLog Robert James Kaes 2003-05-30 16:27:57 +0000
  • 983a76ecef # Bumped up the version number Robert James Kaes 2003-05-30 16:25:41 +0000
  • af5e1e29f6 # Changed the calls to vector_getentry() to use the new calling convention. Robert James Kaes 2003-05-30 16:22:30 +0000
  • 1955dcd47b (vector_getentry): Changed the API to return the data pointer and have the length returned in a argument variable pointer. This should be a more natural way of using the function. Robert James Kaes 2003-05-30 16:21:48 +0000
  • c3eaebd1c5 # Added a vector_prepend() function and recoded the old vector_insert() to be a general "insert" for both vector_append() and vector_prepend() Robert James Kaes 2003-05-29 21:07:22 +0000
  • 8ab278998f # Renamed the vector_insert() calls to vector_append() Robert James Kaes 2003-05-29 20:48:25 +0000
  • 42f9f37afc (vector_append): Renamed the vector_insert() function to more accurately indicate that entries are appended to the end of the vector. Robert James Kaes 2003-05-29 20:47:52 +0000
  • 4a377a712d Improved the upstream proxy support by making the upstream proxy server configurable based on the destination host. [Code written by Peter da Silva] Robert James Kaes 2003-05-29 19:44:00 +0000
  • 2e9f27769d Added support for installing the HTML error files used by tinyproxy. Robert James Kaes 2003-05-10 23:16:45 +0000
  • 5e1303ecd1 (establish_http_connection): If the port being requested is not a standard HTTP port (80 or 443) append the port string to the host header; otherwise, leave the host string with only the host's domain name. Robert James Kaes 2003-05-05 16:46:05 +0000
  • ac88af1f71 Fixed a bug that would kill a child process because of an invalid safefree() call. Basically, destroy_conn() was trying to free memory not allocated by malloc. [Fix by David T. Pierson] Robert James Kaes 2003-05-04 04:35:10 +0000
  • 6046e4a3df This commit was manufactured by cvs2svn to create tag 'release_1_6_0pre2'. 1.6.0pre2 cvs2svn 2003-04-16 18:14:17 +0000