1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-06 09:01:14 +03:00
Commit Graph

841 Commits

Author SHA1 Message Date
Justin Erenkrantz
88053568a7 Fix typo in doxygen comment
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96921 13f79535-47bb-0310-9956-ffa450edef68
2002-09-20 01:00:53 +00:00
Justin Erenkrantz
7efe307731 Add ap_register_provider and ap_lookup_provider functions which resolve
the DSO link problems for DAV and the new aaa modules by moving the
provider code into the core of the server and generalizing them to be
used by any code.

Remove the auth{nz}_*_provider functions as they are no longer needed.

Change the dav_*_provider functions to wrap the ap_*_provider functions
as they have a bit more of a historical precedent that we should keep
around.

Reviewed by:	John K. Sterling <john@sterls.com> (in concept)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96919 13f79535-47bb-0310-9956-ffa450edef68
2002-09-20 00:57:50 +00:00
Sander Striker
8f701a5b1d Update after the tag (and roll).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96909 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 11:57:08 +00:00
Sander Striker
09a5b63ff1 Prepare for the tag.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96907 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 11:04:41 +00:00
Sander Striker
17138e89b8 Update after the tag.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96855 13f79535-47bb-0310-9956-ffa450edef68
2002-09-17 00:45:40 +00:00
Sander Striker
7599dce3f6 Prepare for the tag.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96850 13f79535-47bb-0310-9956-ffa450edef68
2002-09-16 23:29:54 +00:00
William A. Rowe Jr
c5b0867a95 Modify ap_open_logs (an internal function) to follow the hook open_logs
argument schema so it can be directly invoked by the hook handler.  Also
  clean up the open_logs processing to return an error rather than simply
  exit()ing.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96829 13f79535-47bb-0310-9956-ffa450edef68
2002-09-15 22:04:01 +00:00
Greg Stein
bae0abe528 This bit me over the weekend. A module with old constants doesn't work
well with a system looking for new...

Note: we really should peg Apache against a specific APR release so
that our ABI doesn't keep getting whacked due to APR(UTIL) changes.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96628 13f79535-47bb-0310-9956-ffa450edef68
2002-09-03 23:39:43 +00:00
Greg Stein
29b0070685 Clarify the use and sequencing of these three hooks.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96508 13f79535-47bb-0310-9956-ffa450edef68
2002-08-23 22:16:05 +00:00
Ian Holsman
a525e2a5ad Major/Minor/Min[imal]
now working as one (with a sane mind) would thing it should


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96501 13f79535-47bb-0310-9956-ffa450edef68
2002-08-23 18:05:38 +00:00
Ian Holsman
df6a0c3e94 new option to ServerTokens. "Maj[or]" which displays a server response
similar to Apache/2.0

Also surfaced the directive in the standard config, defaulting to FULL


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96500 13f79535-47bb-0310-9956-ffa450edef68
2002-08-23 17:24:39 +00:00
Sander Striker
33b7519c9d Bump after the tag.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96333 13f79535-47bb-0310-9956-ffa450edef68
2002-08-09 19:18:59 +00:00
Sander Striker
9555d66d9e Getting ready for the tag.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96325 13f79535-47bb-0310-9956-ffa450edef68
2002-08-09 15:18:38 +00:00
Jeff Trawick
0de649efa3 fix a compile problem in util_ldap.c when APU_HAS_LDAP_NETSCAPE_SSL
PR:                10324


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96260 13f79535-47bb-0310-9956-ffa450edef68
2002-07-31 15:43:15 +00:00
Jeff Trawick
8250a84889 if APR doesn't support threads, we don't need (and can't have) these
thread mutexes


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96243 13f79535-47bb-0310-9956-ffa450edef68
2002-07-30 19:31:35 +00:00
Jeff Trawick
2f1325c13a untabify
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96242 13f79535-47bb-0310-9956-ffa450edef68
2002-07-30 18:27:14 +00:00
Bill Stoddard
f2a8d4f419 Fix the PATH exposure security problem I thought I fixed in 2.0.36.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96240 13f79535-47bb-0310-9956-ffa450edef68
2002-07-30 18:14:47 +00:00
William A. Rowe Jr
837d08b5f5 Cut-n-paste error
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96135 13f79535-47bb-0310-9956-ffa450edef68
2002-07-21 03:28:51 +00:00
William A. Rowe Jr
4008f0e863 Try this AGAIN. Move ap_regkey.h to include/ and assure that this time,
it contains defined(WIN32)||defined(DOXYGEN) requirements to prevent the
  other platform exports from barfing.  Please ack if this works for you.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96019 13f79535-47bb-0310-9956-ffa450edef68
2002-07-11 19:57:02 +00:00
William A. Rowe Jr
19108b12ab Fix comments
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96018 13f79535-47bb-0310-9956-ffa450edef68
2002-07-11 19:53:04 +00:00
Brian Pane
97b9c76435 Strength-reduce a 64-bit "mod 16" operation to "& 0xf" in cached_explode()
just in case the compiler doesn't do it for us


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96012 13f79535-47bb-0310-9956-ffa450edef68
2002-07-11 16:08:58 +00:00
William A. Rowe Jr
4b4e274fd6 Fix code comments
Submitted by:	Stas Bekman <stas@stason.org>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96007 13f79535-47bb-0310-9956-ffa450edef68
2002-07-11 06:14:30 +00:00
Jeff Trawick
07f1257cc1 tweak a comment for readability
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95972 13f79535-47bb-0310-9956-ffa450edef68
2002-07-08 16:27:54 +00:00
Brian Pane
4ea071cb68 fix ap_mpm_set_max_mem_free declaration to match mpm_common.c
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95958 13f79535-47bb-0310-9956-ffa450edef68
2002-07-04 22:39:03 +00:00
Brian Pane
de4e29fdad Add missing declarations of the new max_mem_free stuff
so prefork will compile


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95957 13f79535-47bb-0310-9956-ffa450edef68
2002-07-04 17:54:49 +00:00
Brian Pane
708e1d6117 Re-use the same temp brigade to read all lines of a request header,
to avoid the overhead of brigade creation and deletion.  (This produced
a 5% reduction in the total CPU usage of a minimalist httpd configuration:
<JHEPKCEMGPKFFDHHDDKDMELFEKAA.bill@wstoddard.com>)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95956 13f79535-47bb-0310-9956-ffa450edef68
2002-07-04 17:05:25 +00:00
William A. Rowe Jr
660bd019fb Bring in os.h after we let apr do its platform foo.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95928 13f79535-47bb-0310-9956-ffa450edef68
2002-07-01 17:49:53 +00:00
Justin Erenkrantz
798c1dae43 Add a filter_init function to the filters so that a filter can execute
arbitrary code before the handlers are invoked.

This resolves an issue with incorrect 304s on If-Modified-Since mod_include
requests since ap_meets_conditions() is not aware that this is a dynamic
request and it is not possible to satisfy 304 for these requests (unless
xbithack full is on, of course).  When mod_include runs as a filter, it is
too late to set any flag since the handler is responsible for calling
ap_meets_conditions(), which it should do before generating any data.

If a module doesn't need to run such arbitrary code, it can just pass NULL
as the argument and all is well.

PR:	9673
Reviewed by:	Ryan Bloom and others


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95906 13f79535-47bb-0310-9956-ffa450edef68
2002-06-28 08:40:25 +00:00
Justin Erenkrantz
f3792f4f86 Fix doxygen comments and add a missing line-feed.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95898 13f79535-47bb-0310-9956-ffa450edef68
2002-06-27 05:32:20 +00:00
Justin Erenkrantz
001b387bcd Change conn_rec->keepalive to an enumerated value of
AP_CONN_UNKNOWN
AP_CONN_CLOSE
AP_CONN_KEEPALIVE

This also fixes a problem where ap_discard_request_body would not discard
the body when keepalive was 0.  This actually meant the keepalive status
was unknown *not* closed, but no one ever remembered that.

This problem was seen with mod_dav sending error responses (as reported by
Karl Fogel).

Suggested by:	Greg "this isn't the '80s" Stein
Reviewed by:	Greg Ames


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95891 13f79535-47bb-0310-9956-ffa450edef68
2002-06-26 19:45:07 +00:00
William A. Rowe Jr
d545963de7 Add in the other complex ap_regkey_value_foo() fns and move ap_regkey.h
Out Of The Way of exports stumbling onto it!!!


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95879 13f79535-47bb-0310-9956-ffa450edef68
2002-06-24 07:50:36 +00:00
William A. Rowe Jr
14111fd4ca Introduce win32 registry handling through a very apr-ish interface.
Deals with apr utf-8 encoding of filesystem values, so we preserve
  strings in any locality or nationalized flavor of WinNT, and avoid
  the gunk for Win9x.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95875 13f79535-47bb-0310-9956-ffa450edef68
2002-06-24 04:50:41 +00:00
Brian Pane
b2fe8e6f27 Removed "tolower(++s)" idiom from ap_strcasestr(), to avoid side-effects
on any platform with a macro-based tolower() that references its argument
multiple times.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95867 13f79535-47bb-0310-9956-ffa450edef68
2002-06-23 09:01:22 +00:00
William A. Rowe Jr
0801cef84c With dav corrected, this last _compat.h bogosity leaves the core distro.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95863 13f79535-47bb-0310-9956-ffa450edef68
2002-06-23 06:43:26 +00:00
William A. Rowe Jr
8d6c820a34 Revert to the 1.39 comments about NULL for ap_sub_req_lookup() next_filter
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95848 13f79535-47bb-0310-9956-ffa450edef68
2002-06-22 19:39:45 +00:00
William A. Rowe Jr
c959a9ace8 Note the changed meaning of the NULL next_filter argument to the
ap_sub_req_lookup() family, and fix a few oddball cases (those are,
  PATH_TRANSLATED reference issues.)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95844 13f79535-47bb-0310-9956-ffa450edef68
2002-06-22 16:32:45 +00:00
Cliff Woolley
508019a5bc bump after the tag
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95726 13f79535-47bb-0310-9956-ffa450edef68
2002-06-17 16:11:06 +00:00
Cliff Woolley
73a5efad5f here goes nothing
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95725 13f79535-47bb-0310-9956-ffa450edef68
2002-06-17 16:06:06 +00:00
Cliff Woolley
b80ce70357 moving on. :)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95718 13f79535-47bb-0310-9956-ffa450edef68
2002-06-16 19:44:45 +00:00
Cliff Woolley
99d6cf6ded bump before the tag
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95715 13f79535-47bb-0310-9956-ffa450edef68
2002-06-16 19:40:04 +00:00
Aaron Bannert
1c58975c55 Improve on some of the documentary comments in the request_rec.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95700 13f79535-47bb-0310-9956-ffa450edef68
2002-06-15 19:19:42 +00:00
William A. Rowe Jr
7af68c0bf5 Solve the 80/20 by initializing and storing server_rec->timeout and
server_rec->keep_alive_timeout in apr_time_interval_t format (in apr
  units, whatever they be), as both values exist to pass into APR, and
  all APR timeouts are in apr_time_t.

Reviewed by:	Cliff Woolley


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95623 13f79535-47bb-0310-9956-ffa450edef68
2002-06-12 23:59:31 +00:00
Cliff Woolley
01a0d0685f Bump after the tag
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95608 13f79535-47bb-0310-9956-ffa450edef68
2002-06-11 05:36:04 +00:00
Cliff Woolley
9a565540c1 bump before the tag
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95605 13f79535-47bb-0310-9956-ffa450edef68
2002-06-11 05:29:21 +00:00
Justin Erenkrantz
8cf0d317fd Style cleanups before contemplating adding init filter hook.
(No functional changes)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95582 13f79535-47bb-0310-9956-ffa450edef68
2002-06-08 03:05:06 +00:00
Bill Stoddard
cef791d3e8 Update comments for Stas Bekman
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95506 13f79535-47bb-0310-9956-ffa450edef68
2002-06-04 19:01:05 +00:00
Cliff Woolley
f35e891531 The recent changes require a full recompile. Lack thereof has bitten
both me and Justin today.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95475 13f79535-47bb-0310-9956-ffa450edef68
2002-06-02 22:29:16 +00:00
Ryan Bloom
ca5fd7fb7b The apr_bucket change requires a minor MMN bump. Also modify Apache's
filters to use APR_BUCKET_IS_METADATA macro.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95454 13f79535-47bb-0310-9956-ffa450edef68
2002-05-31 20:52:28 +00:00
Cliff Woolley
ebfb28f986 fix some major badness: error buckets *cannot* use simple_copy because
they're not simple buckets.  they have a private data structure which
gets freed.  if you're going to copy them and share whatever ->data points
to (which is what simple_copy does), you have to refcount the structure,
which is the whole point of apr_bucket_refcount and apr_bucket_shared_copy.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95421 13f79535-47bb-0310-9956-ffa450edef68
2002-05-31 05:03:09 +00:00
Justin Erenkrantz
6e02b15f7a Add macro to check for an error bucket. (Can't call it APR_BUCKET_IS_ERROR
since error bucket is private to httpd - hence the AP_ prefix.)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95410 13f79535-47bb-0310-9956-ffa450edef68
2002-05-30 21:08:21 +00:00