]> granicus.if.org Git - apache/log
apache
11 years agoRebuild
Rich Bowen [Wed, 16 Jan 2013 01:09:21 +0000 (01:09 +0000)]
Rebuild

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433784 13f79535-47bb-0310-9956-ffa450edef68

11 years agoReplaces the term 'element' with the term 'function' so that it's
Rich Bowen [Wed, 16 Jan 2013 00:59:35 +0000 (00:59 +0000)]
Replaces the term 'element' with the term 'function' so that it's
clearer what we're talking about. (I'm aware that `element` is an SGML
term, but I think that the goal here is communication, rather than
necessarily using the right jargon.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433780 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRebuild SSI change.
Rich Bowen [Wed, 16 Jan 2013 00:43:31 +0000 (00:43 +0000)]
Rebuild SSI change.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433775 13f79535-47bb-0310-9956-ffa450edef68

11 years agoOh, look, we overlooked another instance of 'Apache' where it should be
Rich Bowen [Wed, 16 Jan 2013 00:41:41 +0000 (00:41 +0000)]
Oh, look, we overlooked another instance of 'Apache' where it should be
'Apache httpd'

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433773 13f79535-47bb-0310-9956-ffa450edef68

11 years agorebuild
Rich Bowen [Wed, 16 Jan 2013 00:37:06 +0000 (00:37 +0000)]
rebuild

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433770 13f79535-47bb-0310-9956-ffa450edef68

11 years agoProvide an example in the introduction in order to motivate the lengthy
Rich Bowen [Wed, 16 Jan 2013 00:33:44 +0000 (00:33 +0000)]
Provide an example in the introduction in order to motivate the lengthy
setup process.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433768 13f79535-47bb-0310-9956-ffa450edef68

11 years agoLog a warning if ThreadStackSize has an inappropriate value.
Christophe Jaillet [Tue, 15 Jan 2013 21:53:07 +0000 (21:53 +0000)]
Log a warning if ThreadStackSize has an inappropriate value.
PR : 54311
Submitted by: Tianyin Xu <tixu cs ucsd edu>

Only event.c has been compiled on my system. The 2 others are just cut and paste.
I have left the same value for APLOGNO in event and eventopt has for the other logged messages. I don't know if it is the right way to do.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433682 13f79535-47bb-0310-9956-ffa450edef68

11 years agoImprove error message
Christophe Jaillet [Tue, 15 Jan 2013 20:20:14 +0000 (20:20 +0000)]
Improve error message
PR 54384

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433613 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd helper function to execute command w args and get one line of output. Allow AuthL...
Daniel Ruggeri [Tue, 15 Jan 2013 16:00:44 +0000 (16:00 +0000)]
Add helper function to execute command w args and get one line of output. Allow AuthLDAPBindPassword to have exec: argument like SSLPassPhraseDialog

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433478 13f79535-47bb-0310-9956-ffa450edef68

11 years agofix mysql connection string in example
Daniel Gruno [Tue, 15 Jan 2013 10:43:44 +0000 (10:43 +0000)]
fix mysql connection string in example

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433346 13f79535-47bb-0310-9956-ffa450edef68

11 years agoFix htcacheclean list options "-a" and "-A".
Rainer Jung [Mon, 14 Jan 2013 17:38:34 +0000 (17:38 +0000)]
Fix htcacheclean list options "-a" and "-A".

No filetype without APR_FINFO_TYPE.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433001 13f79535-47bb-0310-9956-ffa450edef68

11 years agoThe pool and db object to be used should be created before trying to acquire a driver...
Daniel Gruno [Mon, 14 Jan 2013 12:04:38 +0000 (12:04 +0000)]
The pool and db object to be used should be created before trying to acquire a driver handle.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432892 13f79535-47bb-0310-9956-ffa450edef68

11 years agorevert r1432881 - t'wasn't a bug after all.
Daniel Gruno [Mon, 14 Jan 2013 11:42:28 +0000 (11:42 +0000)]
revert r1432881 - t'wasn't a bug after all.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432886 13f79535-47bb-0310-9956-ffa450edef68

11 years agomod_lua/dbd: Only 2 arguments are passed, so let's tell Lua to only return 2, not 3.
Daniel Gruno [Mon, 14 Jan 2013 11:37:09 +0000 (11:37 +0000)]
mod_lua/dbd: Only 2 arguments are passed, so let's tell Lua to only return 2, not 3.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432881 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUpdates.
Lucien Gentis [Sat, 12 Jan 2013 17:41:33 +0000 (17:41 +0000)]
Updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432479 13f79535-47bb-0310-9956-ffa450edef68

11 years agoadd default
Eric Covener [Sat, 12 Jan 2013 15:05:51 +0000 (15:05 +0000)]
add default

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432444 13f79535-47bb-0310-9956-ffa450edef68

11 years agoShamelessly add some people to the contributors list (I hope they're okay with that)
Daniel Gruno [Sat, 12 Jan 2013 13:25:40 +0000 (13:25 +0000)]
Shamelessly add some people to the contributors list (I hope they're okay with that)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432422 13f79535-47bb-0310-9956-ffa450edef68

11 years agoThis stuff is now in trunk.
Daniel Gruno [Sat, 12 Jan 2013 13:24:15 +0000 (13:24 +0000)]
This stuff is now in trunk.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432421 13f79535-47bb-0310-9956-ffa450edef68

11 years agoDebian doesn't like pushing statically defined functions into tables, so we'll declar...
Daniel Gruno [Sat, 12 Jan 2013 12:58:31 +0000 (12:58 +0000)]
Debian doesn't like pushing statically defined functions into tables, so we'll declare them in lua_dbd.h and just make them regular functions instead.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432418 13f79535-47bb-0310-9956-ffa450edef68

11 years agomod_ssl: Allow the SSLUserName to be used to control the username passed
Graham Leggett [Fri, 11 Jan 2013 22:53:50 +0000 (22:53 +0000)]
mod_ssl: Allow the SSLUserName to be used to control the username passed
by the FakeBasicAuth option. PR52616.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432322 13f79535-47bb-0310-9956-ffa450edef68

11 years agoFix a typo.
Graham Leggett [Fri, 11 Jan 2013 20:23:59 +0000 (20:23 +0000)]
Fix a typo.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432265 13f79535-47bb-0310-9956-ffa450edef68

11 years agoSince functions are now pushed solely in lua_dbd.c, there's no need to declare them...
Daniel Gruno [Fri, 11 Jan 2013 08:13:28 +0000 (08:13 +0000)]
Since functions are now pushed solely in lua_dbd.c, there's no need to declare them in lua_dbd.h
Hopefully, this solves the Windows compiler issues.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1431930 13f79535-47bb-0310-9956-ffa450edef68

11 years agoinform compiler where mod_dbd.h is located
Gregg Lewis Smith [Thu, 10 Jan 2013 21:53:50 +0000 (21:53 +0000)]
inform compiler where mod_dbd.h is located

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1431681 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdded include path for mod_dbd.h.
Guenter Knauf [Thu, 10 Jan 2013 12:41:13 +0000 (12:41 +0000)]
Added include path for mod_dbd.h.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1431322 13f79535-47bb-0310-9956-ffa450edef68

11 years agoCodeWarrior workaround for lua_dbd
Daniel Gruno [Thu, 10 Jan 2013 09:47:30 +0000 (09:47 +0000)]
CodeWarrior workaround for lua_dbd

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1431236 13f79535-47bb-0310-9956-ffa450edef68

11 years agoFix mistaken reset of num_free with restored shm
Jim Jagielski [Wed, 9 Jan 2013 14:14:42 +0000 (14:14 +0000)]
Fix mistaken reset of num_free with restored shm

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430869 13f79535-47bb-0310-9956-ffa450edef68

11 years agothese are in 2.4.x
Jim Jagielski [Wed, 9 Jan 2013 12:26:34 +0000 (12:26 +0000)]
these are in 2.4.x

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430821 13f79535-47bb-0310-9956-ffa450edef68

11 years agoxforms.
Rainer Jung [Wed, 9 Jan 2013 12:11:33 +0000 (12:11 +0000)]
xforms.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430815 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRemove reference to RequireNone, which is no longer
Rainer Jung [Wed, 9 Jan 2013 12:10:52 +0000 (12:10 +0000)]
Remove reference to RequireNone, which is no longer
used in the example since r1341749.

Add some hopefully interesting other explanation
instead.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430814 13f79535-47bb-0310-9956-ffa450edef68

11 years agoNothing to see here. (Fixes annoying indentation in doc example.)
Rich Bowen [Wed, 9 Jan 2013 03:16:14 +0000 (03:16 +0000)]
Nothing to see here. (Fixes annoying indentation in doc example.)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430669 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRebuild - includes the update to the copyright date.
Rich Bowen [Wed, 9 Jan 2013 02:09:48 +0000 (02:09 +0000)]
Rebuild - includes the update to the copyright date.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430659 13f79535-47bb-0310-9956-ffa450edef68

11 years agoFix xml validation
Rich Bowen [Wed, 9 Jan 2013 01:56:35 +0000 (01:56 +0000)]
Fix xml validation

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430656 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdds a seealso for the logging doc.
Rich Bowen [Wed, 9 Jan 2013 01:52:50 +0000 (01:52 +0000)]
Adds a seealso for the logging doc.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430655 13f79535-47bb-0310-9956-ffa450edef68

11 years agoNaming
Jim Jagielski [Tue, 8 Jan 2013 22:24:10 +0000 (22:24 +0000)]
Naming

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430575 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRephrasing a bit of the database docs for mod_lua
Daniel Gruno [Tue, 8 Jan 2013 19:55:34 +0000 (19:55 +0000)]
Rephrasing a bit of the database docs for mod_lua

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430472 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd lua_dbd features to CHANGES
Daniel Gruno [Tue, 8 Jan 2013 13:41:32 +0000 (13:41 +0000)]
Add lua_dbd features to CHANGES

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430279 13f79535-47bb-0310-9956-ffa450edef68

11 years agoFix typo in comment, as per bugzilla #54388
Daniel Gruno [Tue, 8 Jan 2013 13:05:53 +0000 (13:05 +0000)]
Fix typo in comment, as per bugzilla #54388

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430265 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd database features for mod_lua (apr_dbd + mod_dbd).
Daniel Gruno [Tue, 8 Jan 2013 11:42:50 +0000 (11:42 +0000)]
Add database features for mod_lua (apr_dbd + mod_dbd).
See documentation update for API and examples.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430225 13f79535-47bb-0310-9956-ffa450edef68

11 years agorpm spec: Ensure we are prioritised above mod_ssl on Redhat derivatives.
Graham Leggett [Sun, 6 Jan 2013 23:17:33 +0000 (23:17 +0000)]
rpm spec: Ensure we are prioritised above mod_ssl on Redhat derivatives.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429610 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAccording to my testing, one special case of 'log_xlate_error', i.e. EES_INCOMPLETE_CHAR,
Christophe Jaillet [Sun, 6 Jan 2013 19:48:40 +0000 (19:48 +0000)]
According to my testing, one special case of 'log_xlate_error', i.e. EES_INCOMPLETE_CHAR,
 is 13x (!!!) faster with the use 'ap_bin2hex' instead of apr_snprintf(..., "%02X" + srlen for each character.

Output is *not* exactly the same. It was uppercase, now it is lowercase.
It is just for logging, so I don't think it is an issue.
Should it be, a call to ap_strtoupper can be added.

So sad it is just for logging in case of error... no real speedup to be expected in real life .

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429582 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUse ap_bin2hex instead of sprintf(..., "%02x". It gives the same output and is faster.
Christophe Jaillet [Sun, 6 Jan 2013 18:08:46 +0000 (18:08 +0000)]
Use ap_bin2hex instead of sprintf(..., "%02x". It gives the same output and is faster.

No real speedup should be achieved on production machine, because this is done
only for characters that need to be escaped.
However, this will close PR 50919.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429564 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAccording top my testing 'socache_mc_id2key' is 6x faster with the use 'ap_bin2hex...
Christophe Jaillet [Sun, 6 Jan 2013 17:52:43 +0000 (17:52 +0000)]
According top my testing 'socache_mc_id2key' is 6x faster with the use 'ap_bin2hex' instead of
apr_snprintf(..., "%02X" for each character.
Output is *not* exactly the same. It was uppercase, now it is lowercase.

According to my understanding, this is not an issue.
Should it be, a call to ap_str_toupper should be added.

The speedup would be less, but still significant.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429561 13f79535-47bb-0310-9956-ffa450edef68

11 years agoSecurity notes about SQL injection.
Vincent Deffontaines [Sun, 6 Jan 2013 17:52:43 +0000 (17:52 +0000)]
Security notes about SQL injection.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429560 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAccording top my testing 'SSL_SESSION_id2sz' is 4x faster with the use 'ap_bin2hex...
Christophe Jaillet [Sun, 6 Jan 2013 17:40:13 +0000 (17:40 +0000)]
According top my testing 'SSL_SESSION_id2sz' is 4x faster with the use 'ap_bin2hex' instead of
apr_snprintf(..., "%02X" for each character.
Output is the same.

I have left the uppercase conversion, because I'm unsure if it is usefull or not.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429559 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUpdates.
Lucien Gentis [Sun, 6 Jan 2013 15:58:38 +0000 (15:58 +0000)]
Updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429545 13f79535-47bb-0310-9956-ffa450edef68

11 years agoHappy new year.
Rainer Jung [Sat, 5 Jan 2013 18:15:07 +0000 (18:15 +0000)]
Happy new year.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429349 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUpdate.
Lucien Gentis [Sat, 5 Jan 2013 17:09:23 +0000 (17:09 +0000)]
Update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429329 13f79535-47bb-0310-9956-ffa450edef68

11 years agomod_ssl/ab: only use "--static" for pkg-config when explicity requested
Kaspar Brand [Sat, 5 Jan 2013 07:54:15 +0000 (07:54 +0000)]
mod_ssl/ab: only use "--static" for pkg-config when explicity requested
(by adding an "--enable-ssl-staticlib-deps" option to configure)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429228 13f79535-47bb-0310-9956-ffa450edef68

11 years agofix typo: || not |
Stefan Fritsch [Fri, 4 Jan 2013 23:48:15 +0000 (23:48 +0000)]
fix typo: || not |

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429169 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUpdates.
Lucien Gentis [Fri, 4 Jan 2013 16:56:55 +0000 (16:56 +0000)]
Updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428976 13f79535-47bb-0310-9956-ffa450edef68

11 years agonon-existance of byrequests is not an immediate error
Jim Jagielski [Fri, 4 Jan 2013 15:10:21 +0000 (15:10 +0000)]
non-existance of byrequests is not an immediate error

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428916 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUpdates.
Lucien Gentis [Thu, 3 Jan 2013 18:43:33 +0000 (18:43 +0000)]
Updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428540 13f79535-47bb-0310-9956-ffa450edef68

11 years ago* modules/proxy/mod_proxy_ftp.c (proxy_ftp_handler): Remove
Joe Orton [Thu, 3 Jan 2013 11:09:50 +0000 (11:09 +0000)]
* modules/proxy/mod_proxy_ftp.c (proxy_ftp_handler): Remove
  unnecessary APLOGNO() for trace logging per dev@ discussion.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428280 13f79535-47bb-0310-9956-ffa450edef68

11 years agoImprove pkg-config usage for mod_ssl/ab:
Kaspar Brand [Thu, 3 Jan 2013 07:23:27 +0000 (07:23 +0000)]
Improve pkg-config usage for mod_ssl/ab:

also use pkg-config for determining the -l flags (and fall back
to a hardcoded default of "-lssl -lcrypto")

add --static to pkg-config invocations, so that libraries for
static linking are also taken into account (PR 54252 - note that
the additional flags will only appear in modules/ssl/modules.mk
and ab_LDFLAGS, so potential side effects are limited)

separate --libs-only-L and --libs-only-other into two invocations
(can't be used concurrently, only the first takes effect)

use --silence-errors where applicable

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428184 13f79535-47bb-0310-9956-ffa450edef68

11 years agoStupid CodeWarrior compiler cant take vars with struct inits.
Guenter Knauf [Thu, 3 Jan 2013 02:25:23 +0000 (02:25 +0000)]
Stupid CodeWarrior compiler cant take vars with struct inits.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428145 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd some caching for password hash validation.
Stefan Fritsch [Tue, 1 Jan 2013 20:16:30 +0000 (20:16 +0000)]
Add some caching for password hash validation.

Password hash functions must be expensive in order to be secure. But
if they have to be re-evaluated for every request, performance
suffers.

As a minimal remedy, cache the most recent result for every
connection. This gives a great performance boost if a web browser
does many requests on the same connection with the same
user+password.  In principle, this may keep the plain text password
around longer than before. But in practice, there won't be much
difference since user+password can already remain in some unused
data bucket for longer than the request duration.

A proper solution still needs to be found for connections from
proxies which may carry requests for many different users.

While it currently only requires the conn_rec, the new
ap_password_validate() function takes username and request_rec to
allow future extensions, like detection of brute-force attempts.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427548 13f79535-47bb-0310-9956-ffa450edef68

11 years agoremove unneeded include statements
Stefan Fritsch [Tue, 1 Jan 2013 19:50:56 +0000 (19:50 +0000)]
remove unneeded include statements

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427546 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRemove support for Request-Range header sent by Navigator 2-3 and
Stefan Fritsch [Tue, 1 Jan 2013 17:00:23 +0000 (17:00 +0000)]
Remove support for Request-Range header sent by Navigator 2-3 and
MSIE 3

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427465 13f79535-47bb-0310-9956-ffa450edef68

11 years agoabort if BIO_new fails due to lack of memory
Stefan Fritsch [Tue, 1 Jan 2013 16:23:28 +0000 (16:23 +0000)]
abort if BIO_new fails due to lack of memory

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427456 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdding security related information
Vincent Deffontaines [Tue, 1 Jan 2013 11:57:08 +0000 (11:57 +0000)]
Adding security related information

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427395 13f79535-47bb-0310-9956-ffa450edef68

11 years agosay what I meant to say
Gregg Lewis Smith [Mon, 31 Dec 2012 17:47:46 +0000 (17:47 +0000)]
say what I meant to say

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427201 13f79535-47bb-0310-9956-ffa450edef68

11 years agochange protocol number parsing in strict mode according to HTTPbis draft
Stefan Fritsch [Sun, 30 Dec 2012 21:24:55 +0000 (21:24 +0000)]
change protocol number parsing in strict mode according to HTTPbis draft

- only accept single digit version components
- don't accept white-space after protocol specification

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426992 13f79535-47bb-0310-9956-ffa450edef68

11 years agoremove comment; empty host headers can happen in proxy requests
Stefan Fritsch [Sun, 30 Dec 2012 20:58:39 +0000 (20:58 +0000)]
remove comment; empty host headers can happen in proxy requests

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426988 13f79535-47bb-0310-9956-ffa450edef68

11 years agoWiden strip pattern to also match MOD_XML2ENC_LDADD.
Rainer Jung [Sun, 30 Dec 2012 19:00:44 +0000 (19:00 +0000)]
Widen strip pattern to also match MOD_XML2ENC_LDADD.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426975 13f79535-47bb-0310-9956-ffa450edef68

11 years agoWhat happened to serf in the IDE builds? For consistency sake
Gregg Lewis Smith [Sun, 30 Dec 2012 17:59:22 +0000 (17:59 +0000)]
What happened to serf in the IDE builds? For consistency sake
with the other optional dependencies, get serf in there too.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426969 13f79535-47bb-0310-9956-ffa450edef68

11 years agoadd log tags missing in r1426877
Stefan Fritsch [Sun, 30 Dec 2012 01:28:17 +0000 (01:28 +0000)]
add log tags missing in r1426877

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426879 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd an option to enforce stricter HTTP conformance
Stefan Fritsch [Sun, 30 Dec 2012 01:23:24 +0000 (01:23 +0000)]
Add an option to enforce stricter HTTP conformance

This is a first stab, the checks will likely have to be revised.
For now, we check

 * if the request line contains control characters
 * if the request uri has fragment or username/password
 * that the request method is standard or registered with RegisterHttpMethod
 * that the request protocol is of the form HTTP/[1-9]+.[0-9]+,
   or missing for 0.9
 * if there is garbage in the request line after the protocol
 * if any request header contains control characters
 * if any request header has an empty name
 * for the host name in the URL or Host header:
   - if an IPv4 dotted decimal address: Reject octal or hex values, require
     exactly four parts
   - if a DNS host name: Reject non-alphanumeric characters besides '.' and
     '-'. As a side effect, this rejects multiple Host headers.
 * if any response header contains control characters
 * if any response header has an empty name
 * that the Location response header (if present) has a valid scheme and is
   absolute

If we have a host name both from the URL and the Host header, we replace the
Host header with the value from the URL to enforce RFC conformance.

There is a log-only mode, but the loglevels of the logged messages need some
thought/work. Currently, the  checks for incoming data log for 'core' and the
checks for outgoing data log for 'http'. Maybe we need a way to configure the
loglevels separately from the core/http loglevels.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426877 13f79535-47bb-0310-9956-ffa450edef68

11 years agoFix warning about discarding 'const' qualifier from pointer
Stefan Fritsch [Sat, 29 Dec 2012 22:22:13 +0000 (22:22 +0000)]
Fix warning about discarding 'const' qualifier from pointer

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426850 13f79535-47bb-0310-9956-ffa450edef68

11 years agoCorrectly parse an IPv6 literal host specification in an absolute URL
Stefan Fritsch [Sat, 29 Dec 2012 20:39:49 +0000 (20:39 +0000)]
Correctly parse an IPv6 literal host specification in an absolute URL
in the request line.

- Fix handling of brackets [ ] surrounding the IPv6 address.
- Skip parsing r->hostname again if not necessary.
- Do some checks that the IPv6 address is sane. This is not done by
  apr_parse_addr_port().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426827 13f79535-47bb-0310-9956-ffa450edef68

11 years agoextend description of r->hostname
Stefan Fritsch [Sat, 29 Dec 2012 18:37:17 +0000 (18:37 +0000)]
extend description of r->hostname

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426802 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRebuild various transformations.
Rich Bowen [Fri, 28 Dec 2012 18:10:38 +0000 (18:10 +0000)]
Rebuild various transformations.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426602 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd links to programs docs.
Rich Bowen [Fri, 28 Dec 2012 18:07:57 +0000 (18:07 +0000)]
Add links to programs docs.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426599 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd links to the relevant docs.
Rich Bowen [Fri, 28 Dec 2012 18:03:47 +0000 (18:03 +0000)]
Add links to the relevant docs.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426597 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd notes about compiling from Unix sources
Gregg Lewis Smith [Wed, 26 Dec 2012 17:32:31 +0000 (17:32 +0000)]
Add notes about compiling from Unix sources

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425975 13f79535-47bb-0310-9956-ffa450edef68

11 years agotransformations
Kaspar Brand [Wed, 26 Dec 2012 10:59:31 +0000 (10:59 +0000)]
transformations

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425876 13f79535-47bb-0310-9956-ffa450edef68

11 years agomod_ssl: add support for subjectAltName-based host name checking in proxy mode
Kaspar Brand [Wed, 26 Dec 2012 10:54:54 +0000 (10:54 +0000)]
mod_ssl: add support for subjectAltName-based host name checking in proxy mode
(PR 54030)

factor out code from ssl_engine_init.c:ssl_check_public_cert()
to ssl_util_ssl.c:SSL_X509_match_name()

introduce new SSLProxyCheckPeerName directive, which should eventually
obsolete SSLProxyCheckPeerCN

ssl_engine_io.c:ssl_io_filter_handshake(): avoid code duplication
when aborting with HTTP_BAD_GATEWAY

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425874 13f79535-47bb-0310-9956-ffa450edef68

11 years agoCheck that AsyncRequestWorkerFactor is not negative
Stefan Fritsch [Tue, 25 Dec 2012 21:50:06 +0000 (21:50 +0000)]
Check that AsyncRequestWorkerFactor is not negative

PR :54254
Submitted by: Jackie Zhang <jackie qq zhang gmail com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425777 13f79535-47bb-0310-9956-ffa450edef68

11 years agohtdbm, htpasswd: print error message if out of memory
Stefan Fritsch [Tue, 25 Dec 2012 21:16:17 +0000 (21:16 +0000)]
htdbm, htpasswd: print error message if out of memory

PR: 54345

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425775 13f79535-47bb-0310-9956-ffa450edef68

11 years agoExit with error message if out of mem
Stefan Fritsch [Tue, 25 Dec 2012 20:54:47 +0000 (20:54 +0000)]
Exit with error message if out of mem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425772 13f79535-47bb-0310-9956-ffa450edef68

11 years agoReplace strdup by ap_malloc to ensure a proper error message if out-of-memory.
Stefan Fritsch [Tue, 25 Dec 2012 20:43:15 +0000 (20:43 +0000)]
Replace strdup by ap_malloc to ensure a proper error message if out-of-memory.
While there, only allocate memory for the string part we actually use.

PR: 54345

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425771 13f79535-47bb-0310-9956-ffa450edef68

11 years agoFix example code
Daniel Gruno [Mon, 24 Dec 2012 11:05:07 +0000 (11:05 +0000)]
Fix example code

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425630 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUpdate.
Lucien Gentis [Sun, 23 Dec 2012 17:31:58 +0000 (17:31 +0000)]
Update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425492 13f79535-47bb-0310-9956-ffa450edef68

11 years agoStyle tweaks, remove add_version_component and fix up some sloppy code. Many thanks...
Daniel Gruno [Sun, 23 Dec 2012 10:28:16 +0000 (10:28 +0000)]
Style tweaks, remove add_version_component and fix up some sloppy code. Many thanks to sfritsch for the pointers!
And a merry christmas everyone :)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425450 13f79535-47bb-0310-9956-ffa450edef68

11 years agoGNU make somtimes has problems determining that $(builddir)/test_char.h
Stefan Fritsch [Sun, 23 Dec 2012 09:10:20 +0000 (09:10 +0000)]
GNU make somtimes has problems determining that $(builddir)/test_char.h
and test_char.h are actually the same files. Fix 'make depends' to only
generate the latter.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425447 13f79535-47bb-0310-9956-ffa450edef68

11 years agoadd some nonnull fn attributes
Stefan Fritsch [Sun, 23 Dec 2012 08:55:45 +0000 (08:55 +0000)]
add some nonnull fn attributes

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425444 13f79535-47bb-0310-9956-ffa450edef68

11 years agoChange HttpProtocol to again only allow to enable/disable 0.9
Stefan Fritsch [Sat, 22 Dec 2012 22:55:38 +0000 (22:55 +0000)]
Change HttpProtocol to again only allow to enable/disable 0.9

This reverts r1407643, but changes the syntax of HttpProtocol to
min=0.9|1.0, which is less ambiguous than the previous +0.9|-0.9.

Allowing to configure an arbitrary version range was a bad idea,
because it only checked the version in the request line, without
affecting the semantics of the headers, etc.

A tighter restriction off the version in the request line is still
possible with <If "%{SERVER_PROTOCOL_NUM} ..."> .

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425366 13f79535-47bb-0310-9956-ffa450edef68

11 years agostyle fixes, add comment
Stefan Fritsch [Sat, 22 Dec 2012 22:29:06 +0000 (22:29 +0000)]
style fixes, add comment

no code change

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425360 13f79535-47bb-0310-9956-ffa450edef68

11 years agocaution about merging Location settings on top of directory/files authz config
Eric Covener [Sat, 22 Dec 2012 21:16:09 +0000 (21:16 +0000)]
caution about merging Location settings on top of directory/files authz config

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425345 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRemoved now obsolete function skip from NetWare
Guenter Knauf [Sat, 22 Dec 2012 19:57:40 +0000 (19:57 +0000)]
Removed now obsolete function skip from NetWare
export list generating script.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425338 13f79535-47bb-0310-9956-ffa450edef68

11 years agoStyle tweaks, no functional change.
Daniel Gruno [Sat, 22 Dec 2012 05:25:50 +0000 (05:25 +0000)]
Style tweaks, no functional change.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425243 13f79535-47bb-0310-9956-ffa450edef68

11 years agoxform
Eric Covener [Fri, 21 Dec 2012 16:54:21 +0000 (16:54 +0000)]
xform

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425030 13f79535-47bb-0310-9956-ffa450edef68

11 years agohint about API and module usage.
Eric Covener [Fri, 21 Dec 2012 16:53:46 +0000 (16:53 +0000)]
hint about API and module usage.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425029 13f79535-47bb-0310-9956-ffa450edef68

11 years ago- return NULL if apr_reslist_acquire fails, so we don't end up possibly referencing...
Daniel Gruno [Fri, 21 Dec 2012 14:53:55 +0000 (14:53 +0000)]
- return NULL if apr_reslist_acquire fails, so we don't end up possibly referencing a null-object
- initialize cache_info as NULL

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1424939 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRemove reference to top secret project! You did not see this commit message ;)
Daniel Gruno [Fri, 21 Dec 2012 14:49:06 +0000 (14:49 +0000)]
Remove reference to top secret project! You did not see this commit message ;)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1424938 13f79535-47bb-0310-9956-ffa450edef68

11 years agomod_lua: Fix multipart post parsing, so it doesn't include random bytes at the end.
Daniel Gruno [Thu, 20 Dec 2012 21:52:03 +0000 (21:52 +0000)]
mod_lua: Fix multipart post parsing, so it doesn't include random bytes at the end.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1424723 13f79535-47bb-0310-9956-ffa450edef68

11 years agoOn NetWare skip these unsupported function prototypes.
Guenter Knauf [Wed, 19 Dec 2012 16:44:18 +0000 (16:44 +0000)]
On NetWare skip these unsupported function prototypes.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1423933 13f79535-47bb-0310-9956-ffa450edef68

11 years ago* modules/proxy/mod_proxy_ftp.c: Fill in APLOGNO.
Joe Orton [Tue, 18 Dec 2012 09:01:02 +0000 (09:01 +0000)]
* modules/proxy/mod_proxy_ftp.c: Fill in APLOGNO.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1423353 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdded a warning that these scripts leak information.
Guenter Knauf [Mon, 17 Dec 2012 21:44:32 +0000 (21:44 +0000)]
Added a warning that these scripts leak information.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1423166 13f79535-47bb-0310-9956-ffa450edef68

11 years agoxforms
Daniel Gruno [Mon, 17 Dec 2012 18:26:48 +0000 (18:26 +0000)]
xforms

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1423083 13f79535-47bb-0310-9956-ffa450edef68

11 years agoSome minor tweaks to the wording of the windows page.
Daniel Gruno [Mon, 17 Dec 2012 18:24:11 +0000 (18:24 +0000)]
Some minor tweaks to the wording of the windows page.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1423080 13f79535-47bb-0310-9956-ffa450edef68