summaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2009-09-28Include limits.h for LONG_MAX and LONG_MINMukund Sivaraman1-0/+2
Not including limits.h caused an issue when building on FreeBSD.
2009-09-27[BB#10] Do not filter out transfer-encoding headerMukund Sivaraman1-2/+0
2009-09-27conf: make xtinyproxy BOOL in the directives array, tooMichael Adam1-1/+1
Michael
2009-09-27conf: turn XTinyproxy into a boolean optionMichael Adam3-3/+3
This is what it actually is. The string value was used in earlier versions to compare against the uri->authority string. But not as a list of sites to create an X-Tinyproxy header for, as the tinyproxy.conf template states... Michael
2009-09-27Modify usage help text shown when Tinyproxy is run with -hMukund Sivaraman1-7/+26
2009-09-27Use correct format string for POSIX pid_t in pidfile_create()Mukund Sivaraman1-5/+11
This patch also adds a gtk-doc comment for pidfile_create().
2009-09-27Add explicit casts for c++ mode in transparent-proxy.cMukund Sivaraman1-5/+5
2009-09-27Fix use of uninitialized variableMukund Sivaraman1-2/+2
2009-09-27Add explicit casts for c++ mode in reverse-proxy.cMukund Sivaraman1-5/+8
2009-09-27strdup() the default stathost in config struct as it can be freedMukund Sivaraman1-1/+1
2009-09-27Don't ignore retval of ftruncate() in utils.cMukund Sivaraman1-1/+5
2009-09-27Don't ignore retval of read() in reqs.cMukund Sivaraman1-2/+10
2009-09-27Don't ignore retval of write() in log.cMukund Sivaraman1-3/+20
2009-09-27Don't ignore retval of ftruncate() in log.cMukund Sivaraman1-1/+4
2009-09-27Include debugging functions only when debug mode is usedMukund Sivaraman1-0/+4
2009-09-27Don't ignore retval of chdir()Mukund Sivaraman1-1/+6
2009-09-21Fix warning about format string not being a string literalMukund Sivaraman1-28/+29
2009-09-21Remove trailing comma from acl_type enumMukund Sivaraman1-1/+1
2009-09-21Suppress gcc warnings about variadic macrosMukund Sivaraman1-0/+5
2009-09-21Rename conffile.[ch] to conf.[ch]Mukund Sivaraman4-6/+6
2009-09-21[BB#18] Fix pointer aliasing issuesMukund Sivaraman1-10/+5
The changes were suggested by ians on the Banu forums.
2009-09-21Remove trailing comma from filter_policy_tMukund Sivaraman1-1/+1
2009-09-20Print a http error when the client headers could not be retrieved.Michael Adam1-0/+5
A ususal case here is that the headers were buggy, e.g. a line without a ":" to separate the header field name from the value. Previous behaviour was to silently return a blank page. Michael
2009-09-20Revert "Remove unused parameter from process_request()"Michael Adam1-3/+3
This reverts commit f3312c22a0fc49bf1d93e87ee8e84290f3f91171. The "hashofheaders" argument to process_request() is needed for building with reverse support or with transparent support. Michael
2009-09-20Remove unnecessary vfork.h includeMukund Sivaraman1-3/+0
2009-09-20build: Remove use of the obsolete AC_TYPE_SIGNAL macroMukund Sivaraman1-1/+1
C89 compilers use void return type for signal handler functions.
2009-09-20Remove inline keyword from static functionsMukund Sivaraman4-6/+6
The compiler inlines static functions as necessary anyway. No more inline keywords exist in Tinyproxy source code. We want to avoid using this keyword anyway.
2009-09-20build: Rename autoconf variableMukund Sivaraman1-2/+2
2009-09-20Remove the target system information when the version is displayedMukund Sivaraman1-1/+1
If we require information about the runtime environment, it can be found using the uname program. And binutils can tell about what the tinyproxy binary contains. Tinyproxy doesn't have to report this information.
2009-09-20Remove ability to change the name of the default configuration fileMukund Sivaraman2-1/+4
This feature will only confuse us during support, if users come to us with a Tinyproxy build which has a differently named default config file. This feature is not that useful anyway.
2009-09-15filter: un-linebreak after un-indent...Michael Adam1-10/+4
Michael
2009-09-15child: move log messagte in child_main_loop() to a less irritating place.Michael Adam1-1/+2
Michael
2009-09-15filter: reduce indentation in filter_init by 16 characters by using return.Michael Adam1-72/+76
Michael
2009-09-15Revert "Fix constness of stathost"Mukund Sivaraman1-1/+1
This reverts commit 42d2e10c93aacea89b7e5c23c1487a45788715b3.
2009-09-15Remove unused parameter from process_request()Mukund Sivaraman1-3/+3
2009-09-15Make takesig() into a static functionMukund Sivaraman1-3/+1
2009-09-15Fix constness of stathostMukund Sivaraman1-1/+1
2009-09-15Minor indenting changesMukund Sivaraman1-46/+38
Also changed the text "configuration file" to read "config file".
2009-09-15Return instead of exit() at end of main()Mukund Sivaraman1-1/+1
2009-09-15Minor indenting changesMukund Sivaraman1-5/+10
2009-09-15Exit with proper status in case of bad commandline argumentsMukund Sivaraman1-1/+4
2009-09-15Add doc for change_user()Mukund Sivaraman1-0/+8
2009-09-15Return correct error status when setuid() or setgid() failsMukund Sivaraman1-2/+2
2009-09-15Extract setuid/setgid code into a functionMukund Sivaraman1-53/+62
2009-09-15Extract cmdline parsing code into a functionMukund Sivaraman2-22/+38
2009-09-14filter: untangle assignment and check in filter_init().Michael Adam1-2/+2
Michael
2009-09-14conffile: reformat the directives array for readability.Michael Adam1-52/+56
Michael
2009-09-15Remove unused variableMukund Sivaraman1-1/+0
2009-09-15Indent code to Tinyproxy coding styleMukund Sivaraman34-5224/+4733
The modified files were indented with GNU indent using the following command: indent -npro -kr -i8 -ts8 -sob -l80 -ss -cs -cp1 -bs -nlps -nprs -pcs \ -saf -sai -saw -sc -cdw -ce -nut -il0 No other changes of any sort were made.
2009-09-15Remove C++ wrapper from headersMukund Sivaraman2-18/+0
These are not necessary as Tinyproxy is pure C code, and only to be used within Tinyproxy. It is not a library.