hno [Sat, 20 Oct 2001 04:34:48 +0000 (04:34 +0000)]
SSL update from the "ssl" branch at SourceForge
* Several SSL tweaking options
- SSL version per https_port, no longer a global setting
- supported chipers, per https_port
- supported protocols, per https_port
- connection shutdown method
* Fix the bug reported by Noel Burton-Krahn where SSL connections
could get hung with data pending in the SSL internal buffers. Mostly
seen on large POST/PUT requests, but could in theory appear on any
request larger than 4K.
hno [Wed, 17 Oct 2001 19:43:06 +0000 (19:43 +0000)]
More SunPRO cc warnings and errors..
* Some signed/unsigned char conflicts
* Errored out on a // comment.. this is C not C++.
* cleanup of sfileno usage in "ufs".. not good to have variables named the
same as a type.. and even worse when the type differs.
hno [Wed, 17 Oct 2001 19:30:49 +0000 (19:30 +0000)]
Fixes various warnings emitted in lib by the SunPRO cc compiler, and
synchronized the MD5 prototypes with OpenSSL.
* MD5 operates on binary data, not characters. Avoid signed/unsigned issues
* The bswap16/32 macros was not signed/unsigned safe
* lib/rfc2617 had several spurious extra ;
* MD5Final wants an unsigned char *
adrian [Wed, 17 Oct 2001 16:59:08 +0000 (16:59 +0000)]
A bunch of quick patches to silence gcc warnings when compiling
with FreeBSD's BDECFLAGS. These include duplicate declarations,
declarations shadowing global declarations, implicit type size
and signed/unsigned conversions.
hno [Sat, 13 Oct 2001 00:20:23 +0000 (00:20 +0000)]
Potential fix for Bugzilla #236
Reading the code shows that if the reply contains a single truncated entry
then rfc1035AnswersUnpack will return 0 records, possibly causing assertion
failure in rfc1035RRDestroy
adrian [Wed, 10 Oct 2001 21:17:37 +0000 (21:17 +0000)]
Commit Roger Venning's TOS/source address ACL selection work.
This code allows the user to set ToS bits or the source address
of an ACL by defining an ACL and then using that ACL in
(mutiple instances of the) tcp_outgoing_address statement.
hno [Sat, 6 Oct 2001 03:54:03 +0000 (03:54 +0000)]
Be consistent with most other helpers in how to manage spaces. If there
is space characters then assume these are from the password, not the login
name.
hno [Thu, 4 Oct 2001 05:00:07 +0000 (05:00 +0000)]
Further cleanup of quick_abort description. It is wrong to say that
it can be configured to continue downloading when in fact the default
is to continue if there is less than 16 KB remaining.
hno [Thu, 4 Oct 2001 04:56:20 +0000 (04:56 +0000)]
Make the wording in quick_abort less ambigous. Lots of people seem to
think that quick_abort_min actually makes Squid to never continuing
the downloads..
hno [Wed, 3 Oct 2001 15:02:24 +0000 (15:02 +0000)]
Added maintainer mode to not have automake dependencies rebuild automake
files bo default. This is likely to be confusing and causing lots of problems
to the causal user, especially considering the rather strict requirements
we have on automake versions...
Resurrected Duanes old sleep_after_fork patch. This needed or we will
race with ourselves for swap space when restarting helpers. The hello
test is not really sufficient, we must also wait for the child to actually
exec() before forking again. In the event that we are starting many
helpers who uses CPU it is not too unlikely to see a newly started child
to be context switched before exec().
Anyway, default configuration does nothing. To activate this one must
configure sleep_after_fork in squid.conf so it is a quite harmless patch,
and if it helps some people, fine.
Move CACHE_HTTP_PORT and CACHE_ICP_PORT from config.h.in to acconfig.h.
Move config.h.in to config.h to reduce unneeded recompilations after a configure.
Regenerate autotools files.
Bugfix: Vary failed to calculate the variance when going thru a parent.
I obviously never learn to use httpState->orig_request when accessing
client data. Not the first time I have been bitten by httpState->request
being a bogus request missing most of the vital information when using
a peer proxy (only contains the request line, and how to contact the peer).
adrian [Sat, 8 Sep 2001 00:02:44 +0000 (00:02 +0000)]
Remove MEM_STMEM_BUF from the scene, and statically define the stmem
buffer into the mem_node struct. This should cut down on the number
of allocation requests made per HTTP request.
Merge from ntlm work. Fixes: reconfiguring when ntlm authentication in progress, no longer resets all ntlm auth progress for user foo when user foo has an error on one connection
robertc [Fri, 31 Aug 2001 17:19:04 +0000 (17:19 +0000)]
Merged in the squid-amake branch from sourceforge.
Due to the different policy regarding the autotool generated files, the Makefile.in files
for cvs.squid-cache.org have been updated in place, and the extra autotool support files
- such as depcomp - added. These should be filtered from sourceforge.
Also of particular note:
* new make targets dist-all - creates two distribution tarballs, one .tar.gz, one .tar.bz2.
These do not include all the source files - things like the test suite are deliberately
left out.
* distcheck - creates a .tar.gz dist tarball and confirms that it builds with the default
options.
* the module files - lru/heap/ufs/basic etc are now libraries - liblru.a etc.
* The module files are build from the directory above, ie to build just liblru cd to
src/repl, and type make liblru.a. The benefit to this is that parallelised makes get
better efficiency, as they don't have to serialise each stub node.
hno [Thu, 30 Aug 2001 15:51:40 +0000 (15:51 +0000)]
BUGFIX: potential coredump condition on snmpwalk of empty tables.
If the indexing function did not return a new OID, make sure the
parsing function is forgotten as well.
robertc [Wed, 29 Aug 2001 20:57:33 +0000 (20:57 +0000)]
latest rollup from ntlm.
Includes:
* bugfix for ntlm helpers getting stuck
* bugfix for "Direction" error
* NTLMSSP helper no longer hangs
* some minor authentication code tidyups
* ipcCreate returns PID.
* Stateful helpers show helper PID in stats page.
* Andrew Doran has updated all his email address's. Hi Andrew!
hno [Mon, 27 Aug 2001 04:22:43 +0000 (04:22 +0000)]
BUGFIX: Plug a large SSL memory leak. SSL connections was never freed.
Note: This is done in a quite crude manner, and there most likely is
better ways of doing this. Have investigated the use of a close handler
but it won't fit well with lingering closes.
hno [Fri, 24 Aug 2001 21:02:43 +0000 (21:02 +0000)]
BUGFIX: Certain non-fatal errors could case a client connection to hang
until connection timeout. For example after the following error:
clientReadRequest: FD 17: no data to process
wessels [Tue, 21 Aug 2001 11:54:13 +0000 (11:54 +0000)]
Bugzilla #215: NULL pointer access for proxy requests in accel-only mode
This patch fixes the bug by checking for NULL in aclIsProxyAuth().
If access is denied due to receipt of a proxy request with
'httpd_accel_with_proxy off' then AclMatchedName is NULL.
clientAccessCheckDone() calls aclIsProxyAuth() with the NULL pointer,
so the check could go into either function. It was cleaner to put
it in aclIsProxyAuth().