1
0
mirror of https://github.com/apache/httpd.git synced 2026-10-23 22:49:01 +03:00
Commit Graph

36 Commits

Author SHA1 Message Date
Bradley Nicholes
3a3dd65e29 Remove the ap_session_get, ap_session_set export references for the NetWare build
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@710140 13f79535-47bb-0310-9956-ffa450edef68
2008-11-03 19:36:47 +00:00
Graham Leggett
4ed2378c5e mod_session_cookie, mod_session_dbd: Make sure cookies are set both
within the output headers and error output headers, so that the
session is maintained across redirects.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@690501 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30 13:37:52 +00:00
Graham Leggett
0ec83e8b1b mod_session_cookie: Make sure that cookie attributes are correctly
included in the blank cookie when cookies are removed. This fixes an
inability to log out when using mod_auth_form.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@690400 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 21:49:27 +00:00
Ruediger Pluem
dd3067baac * Prevent a segfault when a CGI script sets a cookie with a null value.
Submitted by: David Shane Holden <dpejesh apache.org>
Reviewed by: rpluem


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@678160 13f79535-47bb-0310-9956-ffa450edef68
2008-07-19 14:00:23 +00:00
William A. Rowe Jr
1ed653d36a Catch up with a host of changes to the current module set
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@664240 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 02:10:32 +00:00
William A. Rowe Jr
acd6d4f502 You don't export the local registered functions
when using optional fn's and hooks.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@664224 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 00:59:04 +00:00
William A. Rowe Jr
87ae720808 You don't export registered entry points
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@664217 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 00:46:19 +00:00
William A. Rowe Jr
11e672a797 mod_session has a different scope than the core.
Replace the nonsense (see modules such as mod_dav,
mod_cache etc for similar examples).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@664165 13f79535-47bb-0310-9956-ffa450edef68
2008-06-06 22:29:58 +00:00
Bradley Nicholes
2681f6f803 For now don't build mod_session_crypto on NetWare
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@659646 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 20:22:03 +00:00
Graham Leggett
679377d732 Fix the method used to detect the root of the request tree when subrequests
are present.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@654137 13f79535-47bb-0310-9956-ffa450edef68
2008-05-07 15:03:58 +00:00
Ruediger Pluem
5b7aff7e99 * The previous patch did not work correctly with neither enable nor disable
set. It just set all mod_session_* to 'no'.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649262 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 20:24:52 +00:00
Ruediger Pluem
6c8b7b1192 * Require to explicitly enable mod_session_crypto since it requires the apr ssl
code which is no longer present in apr trunk, but only in a separate branch.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649258 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 20:05:36 +00:00
Ruediger Pluem
b149889544 * Fix r649054: Do the correct thing when neither enable nor disable is specfied.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649256 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 20:04:09 +00:00
Graham Leggett
563761538e Be defensive to ensure no segfault should the session entries table
not be initialised.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649111 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 14:01:21 +00:00
Joe Orton
90077da18b * modules/session/config.m4: Have --disable-session disable mod_session_*
also.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649054 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 11:20:07 +00:00
Guenter Knauf
c258ea2420 make use of var for output name.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@646310 13f79535-47bb-0310-9956-ffa450edef68
2008-04-09 12:46:27 +00:00
Guenter Knauf
0d38614fcc Fixed export list for mod_session.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@646308 13f79535-47bb-0310-9956-ffa450edef68
2008-04-09 12:43:15 +00:00
Graham Leggett
6919d5d261 Change the directives within the mod_session* modules to be valid
both inside and outside the location/directory sections, as suggested
by wrowe.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@646304 13f79535-47bb-0310-9956-ffa450edef68
2008-04-09 12:39:33 +00:00
Graham Leggett
36500032fc Insert prototypes to remove compiler warnings. [Joe Orton]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@646126 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 23:12:12 +00:00
Guenter Knauf
5962ac29e8 added eol-style property to makefiles.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645931 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 14:07:35 +00:00
Guenter Knauf
5e16f66ba6 added makefiles for NetWare.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645930 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 14:02:49 +00:00
Guenter Knauf
407af3b525 No var declarations in the middle of the code.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645929 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 14:01:49 +00:00
Ruediger Pluem
3bd88fb853 * Fix eol-style property.
Changes to mod_session.c only fix line endings again. No functional
  changes.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645923 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 13:49:49 +00:00
Guenter Knauf
8671e9c09c No var declarations in the middle of the code.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645877 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 12:32:50 +00:00
Paul Querna
a324a1d72f Remove all references to CORE_PRIVATE.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645455 13f79535-47bb-0310-9956-ffa450edef68
2008-04-07 10:45:43 +00:00
Graham Leggett
f2125f46ec mod_session_crypto: Initialise SSL in the post config hook.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645244 13f79535-47bb-0310-9956-ffa450edef68
2008-04-06 14:23:35 +00:00
Graham Leggett
8ef6e5e3d9 Fix the defaults, which currently override the config instead of default the config.
[Ruediger Pluem]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645243 13f79535-47bb-0310-9956-ffa450edef68
2008-04-06 14:05:27 +00:00
Graham Leggett
07c52aab45 Optimisation: We have no need to distiguish between a Cookie and a Cookie2 when reading cookies, the
cookie read code reads both at once. [Ruediger Pluem]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645188 13f79535-47bb-0310-9956-ffa450edef68
2008-04-05 23:52:38 +00:00
Graham Leggett
5550b95a90 Remove an unnecessary config structure lookup during encrypt and decrypt. [Ruediger Pluem]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645187 13f79535-47bb-0310-9956-ffa450edef68
2008-04-05 23:42:08 +00:00
Graham Leggett
10d47f14ff Clarify the operation of the SessionCryptoPassphrase directive as raised by rpluem. When
SessionCryptoCertificateFile is set, asymmetrical encryption will be used, and SessionCryptoPassphrase
will be interpreted as the passphrase protecting the private key. When SessionCryptoCertificateFile
is not set, symmetrical encryption is used, and SessionCryptoPassphrase will contain the key to
use. Make sure that the engine parameter is properly passed into the crypto functions, and fix a
missing cleanup on an error case.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645186 13f79535-47bb-0310-9956-ffa450edef68
2008-04-05 23:35:00 +00:00
Graham Leggett
5b822119d0 mod_session_dbd: Add a session implementation capable of storing
session information in a SQL database via the dbd interface. Useful
for sites where session privacy is important.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645160 13f79535-47bb-0310-9956-ffa450edef68
2008-04-05 18:59:40 +00:00
Graham Leggett
3e0bf1c8a1 Rename the ap_escape_path_segment_b function as suggested by
Ruediger Pluem (left off commit r645120 by accident).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645132 13f79535-47bb-0310-9956-ffa450edef68
2008-04-05 16:30:44 +00:00
Graham Leggett
f10397f26c Make sure we protect ourselves against the session being NULL, which it will be
if no session is configured.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645112 13f79535-47bb-0310-9956-ffa450edef68
2008-04-05 15:05:15 +00:00
Graham Leggett
97e4c9276c mod_session_crypto: Add a session encoding implementation capable
of encrypting and decrypting sessions wherever they may be stored.
Introduces a level of privacy when sessions are stored on the
browser.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@644751 13f79535-47bb-0310-9956-ffa450edef68
2008-04-04 16:11:31 +00:00
Graham Leggett
7d5bef8273 mod_session_cookie: Add a session implementation capable of storing
session information within cookies on the browser. Useful for high
volume sites where server bound sessions are too resource intensive.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@644748 13f79535-47bb-0310-9956-ffa450edef68
2008-04-04 16:02:22 +00:00
Graham Leggett
2b7c89aab4 mod_session: Add a generic session interface to unify the different
attempts at saving persistent sessions across requests.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@644746 13f79535-47bb-0310-9956-ffa450edef68
2008-04-04 15:58:15 +00:00