2f5118046d
Added support for UPSTREAM directive. Included the basic grammar and handler functions for the "upstream" and "no upstream" directives. I still need to update the grammar to match _all_ the possibilities documented in the tinyproxy.conf file, but at least it now does as much as the old config parser.
Robert James Kaes2005-11-04 05:15:47 +00:00
72e1731092
Reformatted the reverse and filter configuration blocks. If either section is not enabled at compile time, it should not be included in the object file.
Robert James Kaes2005-11-04 01:31:41 +00:00
ffec04c65e
Fixed up whitespace formatting of the config file directives. Also added blank lines to group related directives.
Robert James Kaes2005-11-04 00:47:07 +00:00
bed712ffa7
Added the typecheck.m4 macro file to improve type checking support in the configure.ac script. The various typedefs are checked in a larger collection of locations.
Robert James Kaes2005-08-16 14:22:39 +00:00
4c58663041
* [Refactor] Moved Reverse Proxy Code Moved the reverse proxy code from reqs.c into it's own files (reverse_proxy.c). The code in reqs.c is way too complicated, so I want to move unrelated code into their own files to simplify the main concepts in reqs.c.
Robert James Kaes2005-08-16 04:03:19 +00:00
a59117c7ca
* Updated Copyright Email Addresses Updated the copyright email addresses for Robert James Kaes. The users.sourceforge.net address should always exist.
Robert James Kaes2005-07-12 17:39:44 +00:00
6042483a0e
Removed the proxy-* headers from the list of headers to skip. Since tinyproxy does not prompt for any proxy information from the client, it should not be eating the proxy headers. They are most likely needed by an upstream proxy.
Robert James Kaes2005-07-06 21:44:08 +00:00
bf172f9242
Replaced all the AC_ARG_ENABLE calls with calls to our own TP_ARG_ENABLE macro. Except for the transparent proxy option, all the other options remain identical. To enable transparent proxy support use only --enable-transparent, rather than the old --enable-transparent-proxy.
Robert James Kaes2004-08-24 18:43:17 +00:00
7e91fdd975
Added config/argenable.m4 to the list of configuration files needed by the autoconf system.
Robert James Kaes2004-08-24 18:41:18 +00:00
7af47907be
Initial checkin of the TP_ARG_ENABLE macro. This macro extends the default AC_ARG_ENABLE macro to do better error checking of the input values.
Robert James Kaes2004-08-24 18:40:21 +00:00
ab270dc35c
Moved the autoconf/automake configuration files into the config directory, so inform autoconf of this (the AC_CONFIG_AUX_DIR and AC_CONFIG_MACRO_DIR macros.)
Robert James Kaes2004-08-24 16:41:11 +00:00
c3b2bf38e2
Moved all the autoconf/automake configuration information into the config directory.
Robert James Kaes2004-08-24 16:39:29 +00:00
893aed8eef
Removed the "releases.txt" file from the distribution. It didn't really add anything, so there's no point in having it.
Robert James Kaes2004-08-24 16:38:42 +00:00
019b91c3f9
(takesig): Fixed the return type to use the autoconf defined RETSIGTYPE. This is portable, while simply using "void" is not.
Robert James Kaes2004-08-24 16:36:22 +00:00
79d40a536a
(get_bool_arg): Moved the initialization of "p" _before_ the assert() calls. The code doesn't compile under gcc 2.95 otherwise. (I'm surprised it compiles under gcc 3.3 without a problem.)
Robert James Kaes2004-08-24 16:34:22 +00:00
35196f7d8e
Changed some of the variable types so that the code compiles cleanly on other operating systems. (Used cf.sourceforge.net as the test system for cross compiling.)
Robert James Kaes2004-08-24 16:33:00 +00:00
d41260fe2d
Fixed up the acl_s structure so that it compiles correctly under gcc 2.95.
Robert James Kaes2004-08-24 16:31:45 +00:00
7b0f1fe562
Moved the configuration information into it's own directory to avoid cluttering up the root directory.
Robert James Kaes2004-08-20 16:01:31 +00:00
93fbb5ff49
Changed the calls to the config_compile() and config_parse() functions. Also, if the "logfile" directive is used, it will now override use of the syslog system. Added an error message if neither is defined.
Robert James Kaes2004-08-14 03:21:28 +00:00
5c02939533
(log_message): Added a fsync() call after each line outputted to the log file.
Robert James Kaes2004-08-14 03:20:01 +00:00
c5307363be
Reorganized the source code. Added the missing reverse proxy directives. Added a bunch of comments to clarify how the code works.
Robert James Kaes2004-08-14 03:18:41 +00:00
9f4323a562
Removed the last code relating to the old configuration parsing system. The grammar.y and scanner.l files still need to be removed.
Robert James Kaes2004-08-14 00:37:51 +00:00
52562b49df
Removed the grammar.y and scanner.l files from the list of files required by tinyproxy.
Robert James Kaes2004-08-13 21:04:24 +00:00
febb521bfd
Added some error logging information for directives that are conditionally compiled. Still need to add info messages for the directives.
Robert James Kaes2004-08-13 21:03:58 +00:00
1d2e4fc2c3
Change the code to use the new config_parse() method rather than the flex/bison based configuration system.
Robert James Kaes2004-08-13 21:03:11 +00:00
9d04667848
Added the new configuration parsing system (conffile.c and conffile.h.) The new system is intended to replace the existing grammar.y and scanner.l files. I don't want to depend on flex/bison any longer.
Robert James Kaes2004-08-13 20:19:50 +00:00
b3943c21f2
(check_allowed_connect_ports): By default DENY any CONNECT requests unless explicitly allowed by a configuration directive.
Robert James Kaes2004-08-12 20:15:04 +00:00
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 Kaes2004-08-12 19:57:15 +00:00
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 Kaes2004-08-11 20:09:20 +00:00
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 Kaes2004-08-11 02:49:05 +00:00
4a8c4d55f0
Close the standard file descriptors (stdin, stdout, and stderr) when compiling in production mode (no debugging information.)
Robert James Kaes2004-08-10 03:38:13 +00:00
c6711d7d38
# Real update. The last changelog update also included updates from HEAD
Robert James Kaes2004-08-09 20:43:02 +00:00
385fae593d
[Fixes Bug 996518] Merged in a patch from Hans-Dieter that fixes a problem with upstream proxy support.
Robert James Kaes2004-08-06 16:56:55 +00:00
cde61e2fac
child_configure(): Change the "val" type to a signed integer.
Robert James Kaes2004-06-14 20:49:57 +00:00
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 Kaes2004-06-14 20:08:12 +00:00
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 Kaes2004-04-27 18:53:14 +00:00
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 Kaes2004-04-27 18:48:53 +00:00
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 Kaes2004-04-27 18:28:45 +00:00
5ecd9157ce
Converted the various socket functions to work with both IPv4 and IPv6 addresses.
Robert James Kaes2004-02-18 20:18:53 +00:00
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 Kaes2004-02-18 20:17:18 +00:00
02893c3489
Rewrote the "early history" of the project, and added a section for "major" addition authors.
Robert James Kaes2004-02-17 19:49:54 +00:00
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 Kaes2004-02-13 21:27:42 +00:00
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 Kaes2004-02-04 19:57:40 +00:00
1268c17fe2
This commit was manufactured by cvs2svn to create tag 'release_1_7_0'.
1.7.0
cvs2svn2004-01-26 19:19:32 +00:00
0a8e4e4d8d
Added reverse proxy support from Kim Holviala. His comments regarding this addition follow:
Robert James Kaes2004-01-26 19:11:52 +00:00
cd9c768c59
(upstream_add): Fixed a spelling mistake with "Nonsence"
Robert James Kaes2003-11-19 19:20:18 +00:00
f2d846d057
Merged in changes from the 1.6.2 release. (Fixes for the filtering code and the HTML installation script.)
Robert James Kaes2003-10-17 16:11:00 +00:00
5bfcd5d30f
This commit was manufactured by cvs2svn to create tag 'release_1_6_2'.
1.6.2
cvs2svn2003-10-17 15:43:34 +00:00
27d93b1f08
Merged in missing $(DESTDIR) in tinyproxy-html-files rules bug fix from the stable branch.
Robert James Kaes2003-08-14 15:16:50 +00:00
b8d7ee66a5
Added a missing $(DESTDIR) to the tinyproxy-html-files rule. Thanks to Ed Boraas for pointing this out.
Robert James Kaes2003-08-14 15:13:24 +00:00
a13ca8271e
Incorporated patches from Marc Silver to improve the readability and understandability of the documentation.
Robert James Kaes2003-08-07 16:50:55 +00:00
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 Kaes2003-08-07 16:32:12 +00:00
d72fa83245
Removed the included regular expression library, since it should come standard on any reasonably modern system.
Robert James Kaes2003-08-07 16:29:54 +00:00
c315bce11b
(debugging_realloc): Remove the assert on the ptr being NULL since a NULL pointer is allowed by the realloc() spec.
Robert James Kaes2003-08-06 20:44:09 +00:00
6a11a9c909
(child_main): Fixed an off-by-one error with the maxrequestsperchild variable. [Fix proposed by Yannick Koehler]
Robert James Kaes2003-08-06 20:23:06 +00:00
630b99334c
Patch from Marc Silver to improve the readability and accuracy of the tinyproxy man page.
Robert James Kaes2003-08-05 21:14:43 +00:00
fd23cd4aed
# Fixed a comment to actually reflect what the function does.
Robert James Kaes2003-08-05 16:11:59 +00:00
26ad896676
Added the cookie header to the documented list of headers to allow through.
Robert James Kaes2003-08-05 16:11:06 +00:00
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 Kaes2003-08-01 00:14:34 +00:00
15870a9582
Added appropriate casts (void*) casts to allow the code to compile cleanly using a C++ compiler.
Robert James Kaes2003-07-31 23:44:52 +00:00
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 Kaes2003-07-31 23:42:51 +00:00
5a2af49e58
Fixed the cast in both safefree() macros to compile cleaning using a C++ compiler.
Robert James Kaes2003-07-31 23:41:26 +00:00
6aaa863432
Added appropriate casts from (void*) so that the code will compile cleanly with a C++ compiler. (Tested using GCC 3.3)
Robert James Kaes2003-07-31 23:38:28 +00:00
ab02f47a29
# Bumped up the version number because of a maintenance release (to fix a problem with the scanner.c file.
Robert James Kaes2003-07-24 15:13:00 +00:00
ee992e77b7
This commit was manufactured by cvs2svn to create tag 'release_1_6_0'.
1.6.0
cvs2svn2003-07-14 17:45:13 +00:00
4beea1ac67
This commit was manufactured by cvs2svn to create branch 'release_1_6_patches'.
cvs2svn2003-07-14 17:45:12 +00:00
717be92385
# Bumped up the version number and made sure to only add the debugging flags to flex if it really is flex.
Robert James Kaes2003-06-26 18:31:16 +00:00