]> git.ipfire.org Git - thirdparty/apache/httpd.git/log
thirdparty/apache/httpd.git
21 years ago* modules/ssl/ssl_engine_vars.c (ssl_var_log_handler_x): Fix
Joe Orton [Tue, 25 Nov 2003 13:16:10 +0000 (13:16 +0000)] 
* modules/ssl/ssl_engine_vars.c (ssl_var_log_handler_x): Fix
unused variable from previous commit.

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

21 years ago* modules/ssl/ssl_engine_vars.c (ssl_var_lookup): Only call
Joe Orton [Tue, 25 Nov 2003 13:10:09 +0000 (13:10 +0000)] 
* modules/ssl/ssl_engine_vars.c (ssl_var_lookup): Only call
ssl_var_lookup_ssl for a real SSL connection; fix lookup of "HTTPS"
for non-SSL connections.
(ssl_var_log_handler_x): Give results for non-SSL connections too;
e.g. %{HTTPS}x does the right thing.

PR: 23956

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

21 years ago* modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_version):
Joe Orton [Tue, 25 Nov 2003 12:46:32 +0000 (12:46 +0000)] 
* modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_version):
Determine the library version string at run-time rather than at
compile-time.

Submitted by: Eric Seidel <eseidel@apple.com>
PR: 23956

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

21 years ago* modules/ssl/ssl_engine_init.c (ssl_init_proxy_certs): Fail early
Joe Orton [Tue, 25 Nov 2003 12:35:45 +0000 (12:35 +0000)] 
* modules/ssl/ssl_engine_init.c (ssl_init_proxy_certs): Fail early
(rather than segfault later) if a client cert is configured which is
missing either the certificate or private key.

PR: 24030

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

21 years agoSync with APR-util deprecated functions.
Justin Erenkrantz [Sun, 16 Nov 2003 02:22:25 +0000 (02:22 +0000)] 
Sync with APR-util deprecated functions.

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

21 years ago* ssl_engine_log.c (ssl_log_ssl_error): Use the thread-safe
Joe Orton [Thu, 30 Oct 2003 12:15:28 +0000 (12:15 +0000)] 
* ssl_engine_log.c (ssl_log_ssl_error): Use the thread-safe
interface for retrieving error strings.

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

21 years agoFix missing human-readable error information in SSL log messages:
Joe Orton [Thu, 30 Oct 2003 12:07:06 +0000 (12:07 +0000)] 
Fix missing human-readable error information in SSL log messages:

* mod_ssl.c (ssl_cleanup_pre_config): Don't free the error strings,
since they can't be loaded again once.

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

21 years ago* modules/ssl/ssl_engine_vars.c (ssl_var_log_handler_c): Fix
Joe Orton [Thu, 23 Oct 2003 13:12:38 +0000 (13:12 +0000)] 
* modules/ssl/ssl_engine_vars.c (ssl_var_log_handler_c): Fix
segfault on a non-SSL request.

PR: 22741
Submitted by: Gary E. Miller <gem@rellim.com>

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

21 years agoFix a cosmetic issue where OpenSSL 0.9.7 will dump the error stack
Joe Orton [Wed, 22 Oct 2003 15:04:11 +0000 (15:04 +0000)] 
Fix a cosmetic issue where OpenSSL 0.9.7 will dump the error stack
during pass phrase entry.

* ssl_engine_pphrase.c (ssl_pphrase_Handle): Clear the OpenSSL error
stack before reading the private key.

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

21 years ago SSL-C doesn't declare the char* file arg const, so we shouldn't either.
William A. Rowe Jr [Mon, 22 Sep 2003 19:26:21 +0000 (19:26 +0000)] 
  SSL-C doesn't declare the char* file arg const, so we shouldn't either.

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

21 years agoThese silent errors have bitten me a few times, now that we
Jim Jagielski [Wed, 10 Sep 2003 14:21:12 +0000 (14:21 +0000)] 
These silent errors have bitten me a few times, now that we
use APR'd dbm. mod_ssl had hacked sdbm for larger sizes.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

21 years ago Simplify includes - we always (in HTTPD 2.1 forward) are looking
William A. Rowe Jr [Mon, 8 Sep 2003 16:03:49 +0000 (16:03 +0000)] 
  Simplify includes - we always (in HTTPD 2.1 forward) are looking
  for the openssl/foo.h headers explicitly.  Fix the abs.dsp build
  to define HAVE_OPENSSL instead of USE_SSL so the correct headers
  are included upfront.

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

21 years agoswitch to APR 1.0 API (which is still in flux)
Jeff Trawick [Wed, 3 Sep 2003 19:27:12 +0000 (19:27 +0000)] 
switch to APR 1.0 API (which is still in flux)

because of the changes to the argument lists of apr_mmap_dup and apr_socket_create,
2.1-dev won't build with apr and apr-util's 0.9 branch anymore

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

21 years ago* ssl_engine_io.c (ssl_io_filter_connect): Check the
Joe Orton [Fri, 29 Aug 2003 14:45:26 +0000 (14:45 +0000)] 
* ssl_engine_io.c (ssl_io_filter_connect): Check the
library code as well as the reason code when looking for the
plain-HTTP-request error.

Submitted by: Stephen Henson <steve@openssl.org>

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

21 years agoMake mod_ssl consistent with itself when you have a halfass install of
Cliff Woolley [Tue, 12 Aug 2003 20:58:53 +0000 (20:58 +0000)] 
Make mod_ssl consistent with itself when you have a halfass install of
openssl-engine (ie, you're missing the headers).  ssl_cmd_SSLCryptoDevice()
is thrown away by the preprocessor if you're missing the header, so the
call to it should have the same condition applied.  otherwise, mod_ssl
will fail to link.

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

22 years agoTrivial change to reporting an error when an identity spoof is
Sander Striker [Fri, 8 Aug 2003 09:34:20 +0000 (09:34 +0000)] 
Trivial change to reporting an error when an identity spoof is
encountered with respect to FakeBasicAuth.

Submitted by: Greg Stein

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

22 years agoAdd an error msg when encountering a spoofed identity. If this would
Sander Striker [Thu, 7 Aug 2003 23:57:11 +0000 (23:57 +0000)] 
Add an error msg when encountering a spoofed identity.  If this would
have been here in the first place.  Makes issues like these be found
easier in the future.

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

22 years agoFix FakeBasicAuth for subrequests. This was reported via issue
Sander Striker [Thu, 7 Aug 2003 01:53:11 +0000 (01:53 +0000)] 
Fix FakeBasicAuth for subrequests.  This was reported via issue
#1364 in Subversion:

  http://subversion.tigris.org/issues/show_bug.cgi?id=1364

The fix is to make mod_ssl's check_user_id hook stop tripping
over it's own checks in case of a subrequest.  That is, it
should DECLINE in case of a subrequest.

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

22 years ago Although we initialize mc->pid in the child init phase,
William A. Rowe Jr [Tue, 5 Aug 2003 22:49:42 +0000 (22:49 +0000)] 
  Although we initialize mc->pid in the child init phase,
  we haven't initialized it before initially performing
  our ssl_rand_seed() in the parent/postconfig phase.

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

22 years agoPrevent the OpenSSL id_callback from pointing at a mod_ssl
Joe Orton [Thu, 24 Jul 2003 15:35:05 +0000 (15:35 +0000)] 
Prevent the OpenSSL id_callback from pointing at a mod_ssl
function after mod_ssl is unloaded.

* ssl_util.c (ssl_util_thread_cleanup): Clear the id_callback.

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

22 years agoPrevent segfaults after SSL renegotiation failures.
Joe Orton [Mon, 21 Jul 2003 12:02:40 +0000 (12:02 +0000)] 
Prevent segfaults after SSL renegotiation failures.

* modules/ssl/ssl_engine_kernel.c (ssl_hook_Access): Set aborted flag
after renegotiation failure.

* modules/ssl/ssl_engine_io.c (ssl_filter_write, ssl_io_filter_output):
Don't dereference BIOs in filter_ctx when filter_ctx->pssl is NULL.
(ssl_filter_io_shutdown): Set aborted flag on abortive shutdown.

PR: 21370
Submitted by: Hartmut Keil <Hartmut.Keil@adnovum.ch>
Cleaned up by: Jeff Trawick, Joe Orton

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

22 years agomod_ssl: Fix a problem setting variables that represent the
Jeff Trawick [Mon, 14 Jul 2003 17:28:14 +0000 (17:28 +0000)] 
mod_ssl: Fix a problem setting variables that represent the
client certificate chain.

PR:  21371

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

22 years agonot valid to modify string pointed to by szCryptoDevice... it points to a
Jeff Trawick [Mon, 14 Jul 2003 17:16:47 +0000 (17:16 +0000)] 
not valid to modify string pointed to by szCryptoDevice...  it points to a
static string or something parsed from the config

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

22 years agoForward port patch for CAN-2003-0192 from 2.0.
Sander Striker [Wed, 9 Jul 2003 12:27:12 +0000 (12:27 +0000)] 
Forward port patch for CAN-2003-0192 from 2.0.

SECURITY [CAN-2003-0192]: Fixed a bug whereby certain sequences
of per-directory renegotiations and the SSLCipherSuite directive
being used to upgrade from a weak ciphersuite to a strong one
could result in the weak ciphersuite being used in place of the
strong one.  [Ben Laurie]

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

22 years ago Narrow the scope of several OPENSSL-specific setup and teardown calls
William A. Rowe Jr [Tue, 24 Jun 2003 21:40:32 +0000 (21:40 +0000)] 
  Narrow the scope of several OPENSSL-specific setup and teardown calls
  to only OpenSSL based builds.

  Also introduce success result for the registered cleanup callback
  to clean up a compiler emit.

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

22 years agoUse portable macro instead of the (no longer working) Apache-1.3 code
Martin Kraemer [Fri, 20 Jun 2003 12:52:18 +0000 (12:52 +0000)] 
Use portable macro instead of the (no longer working) Apache-1.3 code

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

22 years agoNeeded on EBCDIC systems
Martin Kraemer [Fri, 20 Jun 2003 12:50:11 +0000 (12:50 +0000)] 
Needed on EBCDIC systems

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

22 years ago Reaction to Jeff Trawick's observations that we are double-initializing
William A. Rowe Jr [Tue, 17 Jun 2003 17:44:40 +0000 (17:44 +0000)] 
  Reaction to Jeff Trawick's observations that we are double-initializing
  dynalinked OpenSSL Engines and Configs.  Move the library teardown code
  so that it is torn down in the proper order, corresponding to when the
  library itself was initialized.  And leave a little reminder that some
  memory diagnostics would be good if OpenSSL is built for malloc debugging.

Suggested by: Geoff Thorpe

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

22 years ago OPENSSL_load_builtin_modules -appears- to have been introduced in beta-1,
William A. Rowe Jr [Wed, 11 Jun 2003 17:55:47 +0000 (17:55 +0000)] 
  OPENSSL_load_builtin_modules -appears- to have been introduced in beta-1,
  but boy is this a hassle to determine without gstein's viewcvs ;-)

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

22 years agoUnix: Handle permissions settings for flock-based mutexes in
Jeff Trawick [Sat, 7 Jun 2003 19:50:01 +0000 (19:50 +0000)] 
Unix: Handle permissions settings for flock-based mutexes in
unixd_set_global|proc_mutex_perms().  Allow the functions to be
called for any type of mutex.

This resolves a fatal problem with mod_rewrite on systems where
APR uses flock-based mutex.

It simplifies mod_ssl as well, which had special logic to perform
the chown().  It fixed an init error with mod_ssl on systems where
flock is used when the user had no SSLMutex directive.

The Unix MPMs continue to call unixd_set_global|proc_mutex_perms()
only for SysV sems.  There is no permission problem with flock-based
accept mutexes since the child init logic for the MPMs is done
prior to switching identity.

PR:              20312

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

22 years ago The right patch (thanks to Eric for identifying the wrong patch) to move
William A. Rowe Jr [Mon, 2 Jun 2003 13:30:53 +0000 (13:30 +0000)] 
  The right patch (thanks to Eric for identifying the wrong patch) to move
  SSL_library_init() into the register hooks phase.  OpenSSL_add_ssl_algorithms
  devolves to SSL_library_init, which is the same for most toolkits (and would
  be accomodated in ssl_toolkit_config.h if not.)

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

22 years agoRevert revision 1.81 which called non-existent SSL_load_library.
Justin Erenkrantz [Sat, 31 May 2003 19:29:47 +0000 (19:29 +0000)] 
Revert revision 1.81 which called non-existent SSL_load_library.

No idea where this was seen, but OpenSSL 0.9.7b does not have this.  This
gets mod_ssl working again.

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

22 years ago OpenSSL_add_all_algorithms is simply an alias for SSL_load_library.
William A. Rowe Jr [Fri, 30 May 2003 21:35:04 +0000 (21:35 +0000)] 
  OpenSSL_add_all_algorithms is simply an alias for SSL_load_library.

  Note that the entire schema of what-we-load-how follows from
  OpenSSL 0.9.7's own apps/ example applications.  More review
  is greatly desired, but that's where I believed I should
  start looking for the 'correct' order of operations.

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

22 years ago Provide a far more useful explanation when SSLCryptoDevice fails to
William A. Rowe Jr [Fri, 30 May 2003 21:01:57 +0000 (21:01 +0000)] 
  Provide a far more useful explanation when SSLCryptoDevice fails to
  find a device.  Still would be nice to implement dynamic:{options}
  but this gets us to display the usual, builtin devices.

  We now load builtin engines up front, in the pre_config phase, because
  this and any other config cmd processor must have an already valid
  library config.  So loading builtin engines becomes redundant in this
  cmd handler.

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

22 years ago Solve a pretty horrific bug in SSLCryptoDevice and other places where
William A. Rowe Jr [Fri, 30 May 2003 20:58:55 +0000 (20:58 +0000)] 
  Solve a pretty horrific bug in SSLCryptoDevice and other places where
  the config cmd processors should be examining the SSL context.  We must
  initialize the SSL library before we can actually obtain any useful
  information from the SSL library.

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

22 years ago Based on list discussion between myself and Geoff, it seems prudent
William A. Rowe Jr [Fri, 30 May 2003 18:41:53 +0000 (18:41 +0000)] 
  Based on list discussion between myself and Geoff, it seems prudent
  to check for both the existence of the openssl/engine.h header file
  and some 'expected function' such as ENGINE_init() (better suggestions
  are welcome.)  Also clear up some confusion; so long as we have
  ENGINE_load_builtin_engines() we should attempt to preload those.

  This patch protects all ENGINE-based code within the tests for the
  engine header and function, and changes a version test into a
  function test.

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

22 years ago These tests now exist in acinclude.m4
William A. Rowe Jr [Tue, 27 May 2003 19:28:39 +0000 (19:28 +0000)] 
  These tests now exist in acinclude.m4

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

22 years ago The patch below reverts the prior commit to eliminate SSL_set_state().
William A. Rowe Jr [Thu, 22 May 2003 19:41:32 +0000 (19:41 +0000)] 
  The patch below reverts the prior commit to eliminate SSL_set_state().
  Some additional work or research is required in order to pass the
  perl-framework regressions, but I don't have the cycles and don't
  care to leave the broken code in cvs HEAD.

REVERTING: wrowe 2003/05/19 08:13:19

  Modified:    modules/ssl config.m4 ssl_engine_io.c ssl_engine_kernel.c
                        ssl_toolkit_compat.h
  Log:
    Drop SSL_set_state() in favor of a proper SSL_renegotiate() to begin
    rehandshaking the SSL connection, vis-a-vis ApacheSSL.

  Revision  Changes    Path
  1.15      +0 -1      httpd-2.0/modules/ssl/config.m4
  1.108     +1 -1      httpd-2.0/modules/ssl/ssl_engine_io.c
  1.93      +1 -1      httpd-2.0/modules/ssl/ssl_engine_kernel.c
  1.34      +0 -6      httpd-2.0/modules/ssl/ssl_toolkit_compat.h

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

22 years ago Drop SSL_set_state() in favor of a proper SSL_renegotiate() to begin
William A. Rowe Jr [Mon, 19 May 2003 15:13:19 +0000 (15:13 +0000)] 
  Drop SSL_set_state() in favor of a proper SSL_renegotiate() to begin
  rehandshaking the SSL connection, vis-a-vis ApacheSSL.

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

22 years ago Drop archiac notes - no special steps required once we test for ENGINE_init()
William A. Rowe Jr [Mon, 19 May 2003 15:04:06 +0000 (15:04 +0000)] 
  Drop archiac notes - no special steps required once we test for ENGINE_init()

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

22 years ago Roll away the SSL_EXPERIMENTAL_ENGINE test in favor of testing for the
William A. Rowe Jr [Mon, 19 May 2003 14:48:47 +0000 (14:48 +0000)] 
  Roll away the SSL_EXPERIMENTAL_ENGINE test in favor of testing for the
  ENGINE_init() function in config.m4, and rely on HAVE_ENGINE_INIT instead.

Reviewed by: Ben Laurie (concept)

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

22 years ago First point out that we lost HAVE_SSL_SET_STATE and HAVE_SSL_SET_CERT_STORE
William A. Rowe Jr [Mon, 19 May 2003 14:43:20 +0000 (14:43 +0000)] 
  First point out that we lost HAVE_SSL_SET_STATE and HAVE_SSL_SET_CERT_STORE
  autoconf discovery.

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

22 years agoGet the AP_ and APR_ prefixes right.
Justin Erenkrantz [Fri, 16 May 2003 21:16:35 +0000 (21:16 +0000)] 
Get the AP_ and APR_ prefixes right.

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

22 years ago Why wouldn't this be a mod_ssl header?
William A. Rowe Jr [Fri, 16 May 2003 18:22:44 +0000 (18:22 +0000)] 
  Why wouldn't this be a mod_ssl header?

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

22 years ago Assure that we block on the read BIO when we invoke the read BIO for both
William A. Rowe Jr [Fri, 16 May 2003 16:11:03 +0000 (16:11 +0000)] 
  Assure that we block on the read BIO when we invoke the read BIO for both
  first-use cases (via ssl_io_input_add_filter) and when we are writing and
  need response from the client (via ssl_io_filter_output).  Both of these
  cases are always blocking.  [

PR: 19242
Submitted by: David Deaves <David.Deaves@dd.id.au>, William Rowe

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

22 years agotweak the const-ness of MODSSL_INFO_CB_ARG_TYPE based on the OpenSSL
Jeff Trawick [Thu, 1 May 2003 13:10:36 +0000 (13:10 +0000)] 
tweak the const-ness of MODSSL_INFO_CB_ARG_TYPE based on the OpenSSL
version

this resolves some warnings with RH 8 (OpenSSL 0.9.6)
and some errors with AIX's native compiler (OpenSSL 0.9.6)

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

22 years agoFurther breakage from r.1.131: MODSSL_INFO_CB_ARG_TYPE also includes the *.
Justin Erenkrantz [Sun, 6 Apr 2003 19:40:40 +0000 (19:40 +0000)] 
Further breakage from r.1.131: MODSSL_INFO_CB_ARG_TYPE also includes the *.

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

22 years agoFix compile breakage introduced in r1.131.
Justin Erenkrantz [Sun, 6 Apr 2003 19:36:19 +0000 (19:36 +0000)] 
Fix compile breakage introduced in r1.131.

MODSSL_INFO_CB_ARG_TYPE already includes 'SSL' in its type.  Don't duplicate.

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

22 years ago Solve SSL-C breakage introduced in mod_ssl.h rev 1.129 and
William A. Rowe Jr [Sat, 5 Apr 2003 22:45:28 +0000 (22:45 +0000)] 
  Solve SSL-C breakage introduced in mod_ssl.h rev 1.129 and
  ssl_engine_kernel.c rev 1.88.  SSL* is not const under SSL-C.

  I've confirmed Jeff's comment that the original patch doesn't harm
  earlier OpenSSL versions which declared no arguments at all.

  I suspect now that we could fold
     #define MODSSL_BIO_CB_ARG_TYPE const char
     #define MODSSL_CRYPTO_CB_ARG_TYPE const char
     #define MODSSL_INFO_CB_ARG_TYPE const SSL*
  into a single MODSSL_CB_ARG_CONST define, but this works for now.

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

22 years ago Noop MS DevStudio IDE change\r to include ssl_toolkit_compat.h
William A. Rowe Jr [Sat, 5 Apr 2003 22:27:41 +0000 (22:27 +0000)] 
  Noop MS DevStudio IDE change\r to include ssl_toolkit_compat.h
  in the list of project headers.

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

22 years ago Have some consistency! Fixes logic I introduced in 1.37.
William A. Rowe Jr [Sat, 5 Apr 2003 19:32:01 +0000 (19:32 +0000)] 
  Have some consistency!  Fixes logic I introduced in 1.37.

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

22 years ago Reapply the fix *intended* by rev 1.79 in a safer manner. Prior to
William A. Rowe Jr [Sat, 5 Apr 2003 19:04:44 +0000 (19:04 +0000)] 
  Reapply the fix *intended* by rev 1.79 in a safer manner.  Prior to
  all assignments and the final SSL_free(), free ssl_conn->client_cert
  to avoid leaks of this refcounted X509*.  Prereleasing refcounted
  objects is unsafe programming; fix applied to both branches.

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

22 years ago EVP_PKEY_free() is refcounted on OpenSSL, but NOT under RSA SSL-C.
William A. Rowe Jr [Sat, 5 Apr 2003 18:36:56 +0000 (18:36 +0000)] 
  EVP_PKEY_free() is refcounted on OpenSSL, but NOT under RSA SSL-C.
  Eliminate a number of test failures by conditionally reverting rev 1.79
  pubkey handling in ssl_engine_kernel.c, except under OpenSSL.

  Also revert a rev 1.79 bogisity for all toolkits; it's entirely bogus
  to release a refcount after setting aside the results in a persistant
  structure, in this case sslconn->client_cert from SSL_get_peer_certificate()
  mustn't be freed while sslconn is still in play.  The proper patch (not
  written yet) is to invoke the X509_free(sslconn->client_cert) when we
  cleanup the sslconn structure.

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

22 years ago A cosmetic change to 1.79 - a real X509 *cert is in play, don't use
William A. Rowe Jr [Sat, 5 Apr 2003 18:18:08 +0000 (18:18 +0000)] 
  A cosmetic change to 1.79 - a real X509 *cert is in play, don't use
  that same variable to retrieve/release the quick lookup and discard
  of the peercert.

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

22 years agoget function prototypes for strcasecmp() and strncasecmp()
Jeff Trawick [Fri, 4 Apr 2003 04:02:01 +0000 (04:02 +0000)] 
get function prototypes for strcasecmp() and strncasecmp()

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

22 years agoFix a compile failure with recent OpenSSL and picky compilers
Jeff Trawick [Fri, 4 Apr 2003 03:57:10 +0000 (03:57 +0000)] 
Fix a compile failure with recent OpenSSL and picky compilers
(e.g., OpenSSL 0.9.7a and xlc_r on AIX).

The OpenSSL info callback field changed recently from a generic
function pointer to a specific one, and ssl_callback_LogTracingState
wasn't quite right.

old:
ssl.h:        void (*info_callback)();

new:
ssl.h:        void (*info_callback)(const SSL *ssl,int type,int val);

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

22 years ago Introduce a number of SSLC hints to mod_ssl, including the following
William A. Rowe Jr [Thu, 3 Apr 2003 04:54:20 +0000 (04:54 +0000)] 
  Introduce a number of SSLC hints to mod_ssl, including the following
  type overrides;

    MODSSL_CLIENT_CERT_CB_ARG_TYPE
    MODSSL_PCHAR_CAST      (for a host of non-void/const sslc values)
    modssl_read_bio_cb_fn  (for several callbacks with same prototypes)

  Declare callback functions appropriately.

  And protect us from indetermineant toolkits with
  #error "Unrecognized SSL Toolkit!"

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

22 years ago We presume to HAVE_OPENSSL - we were falling into the SSLC path :-(
William A. Rowe Jr [Thu, 3 Apr 2003 04:41:01 +0000 (04:41 +0000)] 
  We presume to HAVE_OPENSSL - we were falling into the SSLC path :-(
  Win32 is non-autoconf

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

22 years ago HAVE_SSL_SET_STATE=1 is a product of autoconf for OpenSSL, which we
William A. Rowe Jr [Thu, 3 Apr 2003 04:08:06 +0000 (04:08 +0000)] 
  HAVE_SSL_SET_STATE=1 is a product of autoconf for OpenSSL, which we
  are missing on Win32.

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

22 years agoMatch what we do with the ssl_scache_dbm
Jim Jagielski [Mon, 31 Mar 2003 14:38:51 +0000 (14:38 +0000)] 
Match what we do with the ssl_scache_dbm
chown junk, which we know is safe and works, and more directly
handles the issue with chown (agreed that a macro is needed
eventually)

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

22 years ago Must fix - Win32 can't deal with this code, and we can no longer fix
William A. Rowe Jr [Mon, 31 Mar 2003 07:24:34 +0000 (07:24 +0000)] 
Must fix - Win32 can't deal with this code, and we can no longer fix
    sysv mutexes with an APR_USE_ test... we have to look at the choice!

  Reviewed by: Brian Pane, Justin Erenkrantz

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

22 years agoFix mod_ssl.dsp and abs.dsp to use also the openssl-0.9.7-defines for
AndrĂ© Malo [Sat, 29 Mar 2003 04:39:08 +0000 (04:39 +0000)] 
Fix mod_ssl.dsp and abs.dsp to use also the openssl-0.9.7-defines for
NO_MD5, NO_IDEA and NO_MDC2 (won't compile otherwise with 0.9.7+ and
restricted crypto algorithms)

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

22 years agoBecause SSL's child init is run *after* we change uid/gid. So we need to ensure that...
Jim Jagielski [Sat, 29 Mar 2003 02:18:43 +0000 (02:18 +0000)] 
Because SSL's child init is run *after* we change uid/gid. So we need to ensure that file-based
locks have the correct perms so that the child process
can access them

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

22 years ago Per JimJ's review - we prefer posix over semv, fcntl over flock,
William A. Rowe Jr [Fri, 28 Mar 2003 00:43:26 +0000 (00:43 +0000)] 
  Per JimJ's review - we prefer posix over semv, fcntl over flock,
  and semv requires no file.

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

22 years ago Addendum to r1.74; Keep only the resulting filename in the global pool,
William A. Rowe Jr [Fri, 28 Mar 2003 00:00:13 +0000 (00:00 +0000)] 
  Addendum to r1.74; Keep only the resulting filename in the global pool,
  toss the temporary strings away.

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

22 years ago Addendum to r1.21... I missed the fact that we blew away the init
William A. Rowe Jr [Thu, 27 Mar 2003 23:51:22 +0000 (23:51 +0000)] 
  Addendum to r1.21... I missed the fact that we blew away the init
  complete state too early in ssl_init_Module().

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

22 years ago Fix a serious bug where the 'next' generation of the server would open
William A. Rowe Jr [Thu, 27 Mar 2003 23:34:06 +0000 (23:34 +0000)] 
  Fix a serious bug where the 'next' generation of the server would open
  a brand new mutex.  This patch creates a single mutex in the first config
  phase that survives for the life of the server (server->process->pool).

  Now one server generation to the next will respect the same mutex between
  one another, while the previous generation is still mopping up.

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

22 years ago Allow any mutex to accept a 'filename' ... and always root it to the
William A. Rowe Jr [Thu, 27 Mar 2003 23:32:42 +0000 (23:32 +0000)] 
  Allow any mutex to accept a 'filename' ... and always root it to the
  server root unless we are using posixsem, which can't handle big paths.
  This reorganization should make the code much more readable because
  all of the common code is at the beginning and end of the function,
  simplifing the long conditional test case block.

  This patch allows SSLMutex default:logs/ssl_mutex syntax.  It also
  removes the mod_ssl historical '.pid' suffixes - that isn't how Apache2
  specifies files.

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

22 years agohelps to actually use it
Jim Jagielski [Wed, 26 Mar 2003 22:31:56 +0000 (22:31 +0000)] 
helps to actually use it

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

22 years agoOpenSSL should be included as "openssl/ssl.h" and not "ssl.h" (and rely on the
Madhusudan Mathihalli [Fri, 14 Mar 2003 02:20:50 +0000 (02:20 +0000)] 
OpenSSL should be included as "openssl/ssl.h" and not "ssl.h" (and rely on the
INCLUDE path to be defined properly)

PR: 11310
Submitted by: Geoff Thrope <geoff@geoffthrope.net>
Reviewed by: Madhusudan Mathihalli

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

22 years agoReplace the APACHE_CHECK_SSL_TOOLKIT method with a cleaner one, using
Madhusudan Mathihalli [Thu, 13 Mar 2003 20:36:39 +0000 (20:36 +0000)] 
Replace the APACHE_CHECK_SSL_TOOLKIT method with a cleaner one, using
autoconf tools (AC_CHECK_HEADER, AC_CHECK_LIB etc).

Submitted by: Geoff Thorpe <geoff@geoffthorpe.net>
Reviewed by: Madhu, Justin

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

22 years agoFix PR 17864, and also fixes a SEGV problem when SHMHT was used.
Madhusudan Mathihalli [Wed, 12 Mar 2003 06:26:22 +0000 (06:26 +0000)] 
Fix PR 17864, and also fixes a SEGV problem when SHMHT was used.
The porting of the code from mod_ssl 1.3.x was still incomplete, and depended
upon a complete implentation of apr_shm (hence pieces of code was #if 0'ed out).

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

22 years ago After discussions at length on dev@apr/httpd, it is determined that
William A. Rowe Jr [Tue, 11 Mar 2003 00:58:59 +0000 (00:58 +0000)] 
  After discussions at length on dev@apr/httpd, it is determined that
  the older .dbg format symbols are not worth the interference with
  generating complete .pdb symbolic debugging databases.

  This patch further eliminates pdbtype:sept flags that interfere with
  deciphering local symbols and type information.

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

22 years ago DougM confirms Madhu's suspicions, this change was inadvertent.
William A. Rowe Jr [Thu, 6 Mar 2003 08:43:39 +0000 (08:43 +0000)] 
  DougM confirms Madhu's suspicions, this change was inadvertent.
  Reverting to no longer skip the first cert in the chain.

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

22 years agoRight now SSLMutex is bogus. It just uses APR_LOCK_DEFAULT no
Jim Jagielski [Sun, 23 Feb 2003 17:12:43 +0000 (17:12 +0000)] 
Right now SSLMutex is bogus. It just uses APR_LOCK_DEFAULT no
matter what. We now allow for the full range of APR mutex
locking mechanims to be used, while maintaining backwards
compatibility.

PR: 8122
Obtained from:
Submitted by:
Reviewed by: William Rowe

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

22 years agoFix a 64-bit porting issue.
Madhusudan Mathihalli [Fri, 21 Feb 2003 20:12:24 +0000 (20:12 +0000)] 
Fix a 64-bit porting issue.

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

22 years ago After consultations on the APR list, it was decided that /map files are
William A. Rowe Jr [Thu, 20 Feb 2003 15:56:04 +0000 (15:56 +0000)] 
  After consultations on the APR list, it was decided that /map files are
  fairly redundant when you retain rich .pdb debugging symbol files.  We
  have rarely used them, and generally .dbg and .pdb files prove much more
  useful for the cases we have.

  While eliminating /map files, we are also shrinking the size of the .dbg
  files by stripping 'private' symbol information.  Really this means less
  rich diagnostics from Dr. Watson on NT or Win9x when they query the .dbg
  symbols in creating a DrWatson log file.  But it's more than compensated
  for on newer OS'es where Dr. Watson will query the .pdb symbols, on all
  Win32 flavors when WinDbg is used with the .pdb symbols, and the fact that
  the distribution of binary symbols will use less bandwidth when less
  information is duplicated from the .pdb format into the .dbg files.

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

22 years ago foo.dbgmark turned out to be the same 8.3 name as foo.dbg itself, which
William A. Rowe Jr [Tue, 18 Feb 2003 22:07:21 +0000 (22:07 +0000)] 
  foo.dbgmark turned out to be the same 8.3 name as foo.dbg itself, which
  was badness.  Twist this puppy to .dbr, the only name I could invent that
  doesn't look like any database file extension I recall.

  It stands for .dbg rebased.

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

22 years ago *) Introduce debugging symbols for Win32 release builds, both .pdb
William A. Rowe Jr [Fri, 7 Feb 2003 21:30:53 +0000 (21:30 +0000)] 
  *) Introduce debugging symbols for Win32 release builds, both .pdb
     and .dbg files (older debuggers and Dr. Watson-type utilities
     on WinNT or Win9x don't support the newer .pdb flavor.)
     [Allen Edwards, William Rowe]

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

22 years agofinished that boring job:
AndrĂ© Malo [Mon, 3 Feb 2003 17:53:28 +0000 (17:53 +0000)] 
finished that boring job:
update license to 2003.

Happy New Year! ;-))

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

22 years ago Omitted the commit log message from the last commit, sorry;
William A. Rowe Jr [Tue, 21 Jan 2003 19:19:36 +0000 (19:19 +0000)] 
  Omitted the commit log message from the last commit, sorry;

  Fix a nasty segfault, that there's a stack buffer we are trying to free!
  Revert this 'memory leak' patch from the 1.79 rev.

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

22 years ago*** empty log message ***
William A. Rowe Jr [Tue, 21 Jan 2003 19:19:01 +0000 (19:19 +0000)] 
*** empty log message ***

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

22 years ago Catch up with the changes to apr/build/win32ver.awk and name all loadable
William A. Rowe Jr [Mon, 20 Jan 2003 19:52:30 +0000 (19:52 +0000)] 
  Catch up with the changes to apr/build/win32ver.awk and name all loadable
  httpd modules as .so, internally.  Credit to Mladen Turk for identifing
  the issue.

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

22 years ago After introducing tests in the cmds, we lose the absolute authority
William A. Rowe Jr [Mon, 13 Jan 2003 17:10:42 +0000 (17:10 +0000)] 
  After introducing tests in the cmds, we lose the absolute authority
  of the CRYPTO_malloc_init() which must happen the moment we load the
  module and prior to *any* ssl library fn invocation.

  Moved the CRYPTO_malloc_init() into the ssl_register_hooks() function,
  the absolute first call made into any loaded module.

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

22 years ago All we care about is the type and name, just ask for the type and name.
William A. Rowe Jr [Mon, 23 Dec 2002 09:09:21 +0000 (09:09 +0000)] 
  All we care about is the type and name, just ask for the type and name.

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

22 years ago After some productive feedback and no negative feedback, introduce
William A. Rowe Jr [Sat, 14 Dec 2002 07:46:45 +0000 (07:46 +0000)] 
  After some productive feedback and no negative feedback, introduce
  SSLEngine upgrade so that we can begin and continue to support these
  facilities.  This makes it simpler to keep this effort (while we have
  no known clients that support Connection: upgrade at this time), and
  begin refactoring more of SSL into smaller and tighter (and then optional)
  components.

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

22 years ago After some productive feedback and no negative feedback, introduce
William A. Rowe Jr [Sat, 14 Dec 2002 07:46:45 +0000 (07:46 +0000)] 
  After some productive feedback and no negative feedback, introduce
  SSLEngine upgrade so that we can begin and continue to support these
  facilities.  This makes it simpler to keep this effort (while we have
  no known clients that support Connection: upgrade at this time), and
  begin refactoring more of SSL into smaller and tighter (and then optional)
  components.

  Submitted by: Ryan Bloom
  Reviewed by: William Rowe, Joe Orton

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

22 years ago2.0 -> 2.1
Wilfredo Sanchez [Sun, 8 Dec 2002 21:05:57 +0000 (21:05 +0000)] 
2.0 -> 2.1

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

22 years agoFix some possibly-uninitialized variables.
Cliff Woolley [Sat, 23 Nov 2002 21:19:03 +0000 (21:19 +0000)] 
Fix some possibly-uninitialized variables.

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

22 years agoRearrange OpenSSL engine initialization to support RAND
Jeff Trawick [Mon, 11 Nov 2002 13:16:17 +0000 (13:16 +0000)] 
Rearrange OpenSSL engine initialization to support RAND
redirection on crypto accelerator.

Submitted by:     Frederic DONNAT <frederic.donnat@zencod.com>
Reviewed by:   Jeff Trawick

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

22 years ago Turn DOWN the volume of these errors... they are low enough level notes
William A. Rowe Jr [Thu, 7 Nov 2002 06:26:48 +0000 (06:26 +0000)] 
  Turn DOWN the volume of these errors... they are low enough level notes
  to land at loglevel INFO

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

22 years ago Per Justin's feedback, this still needed a little work to get the
William A. Rowe Jr [Wed, 6 Nov 2002 07:44:11 +0000 (07:44 +0000)] 
  Per Justin's feedback, this still needed a little work to get the
  four cases (block/nonblock read/nodata) straight.

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

22 years ago Rule one of winsock and other one-offs (even unix EINTR) ... blocking
William A. Rowe Jr [Wed, 6 Nov 2002 07:29:36 +0000 (07:29 +0000)] 
  Rule one of winsock and other one-offs (even unix EINTR) ... blocking
  isn't necessarily blocking.  Should not have changed this in the prior
  commit, and adding the same retry to the -1/EAGAIN|EINTR case.

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

22 years ago errno? EINTR? what planet was this code on :-? Normalize the
William A. Rowe Jr [Wed, 6 Nov 2002 07:21:47 +0000 (07:21 +0000)] 
  errno?  EINTR?  what planet was this code on :-?  Normalize the
  ssl_io_filter_connect code to follow the filter read and write.
  Notice that it's buck ugly, but we will extract an rc first from
  the input BIO if it was written, and then try the output bio if
  it was APR_SUCCESS, during _connect processing.

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

22 years ago Merge the last of the 'filtering' functions into ssl_engine_io.c, merge
William A. Rowe Jr [Tue, 5 Nov 2002 20:47:01 +0000 (20:47 +0000)] 
  Merge the last of the 'filtering' functions into ssl_engine_io.c, merge
  ssl_abort into what was ssl_hook_CloseConnection, clean out a bunch of
  now-static or private headers from mod_ssl.h, and final fix a very small
  but potent segfault if ->pssl is destroyed within our read loop.

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

22 years ago Actually, the APR_ECONNABORTED (EOS-only brigade) is the direction we
William A. Rowe Jr [Tue, 5 Nov 2002 06:38:41 +0000 (06:38 +0000)] 
  Actually, the APR_ECONNABORTED (EOS-only brigade) is the direction we
  are contemplating for the next release, not the prior behavior
  (which was APR_SUCCESS for c->aborted.)

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

22 years ago With a last little bit of help from Justin, this should cause the
William A. Rowe Jr [Tue, 5 Nov 2002 03:38:14 +0000 (03:38 +0000)] 
  With a last little bit of help from Justin, this should cause the
  appropriate amount of tumolt and turmoil if our client has 'gone away'
  on us, sparing us of further processing (and potential 'renegotiations'
  with a non-existant client.)

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

22 years ago At least one doc I've seen says EOF+bytes is valid. This was a typo.
William A. Rowe Jr [Tue, 5 Nov 2002 03:16:33 +0000 (03:16 +0000)] 
  At least one doc I've seen says EOF+bytes is valid.  This was a typo.

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

22 years ago Appears we forgot to check the possibility of errors coming from the
William A. Rowe Jr [Mon, 4 Nov 2002 19:41:52 +0000 (19:41 +0000)] 
  Appears we forgot to check the possibility of errors coming from the
  write brigade passed down from the content generator through the body
  and protocol filters.

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

22 years ago Rename the many flavors of filter_ctx (pRec, fctx etc) to filter_ctx,
William A. Rowe Jr [Mon, 4 Nov 2002 17:39:56 +0000 (17:39 +0000)] 
  Rename the many flavors of filter_ctx (pRec, fctx etc) to filter_ctx,
  wbio to bio_out, BIO new and free to create and destroy (to match OpenSSL),
  refactor the bio write code to stash errors in outctx->rc,
  fix the blocking read at EOF if we have some data to return,
  and preempt the nonblock read on GETLINE if we have the newline already.

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