]> git.ipfire.org Git - thirdparty/apache/httpd.git/log
thirdparty/apache/httpd.git
23 years ago Introduce the PassPhraseDialog 'pipe' mechanism.
William A. Rowe Jr [Wed, 27 Feb 2002 19:51:33 +0000 (19:51 +0000)] 
  Introduce the PassPhraseDialog 'pipe' mechanism.

  This is the directive handling commit only, the mechanics patch will
  follow.  PassPhraseDialog "|/path/to/pipe" will use the bidirectional
  pipe to have a 'conversation', along the lines of the tty dialog with
  PassPhraseDialog 'builtin'.  This is entirely different than the 'exec'
  method, which simply runs once for each passphrase, and doesn't allow
  for failure/retries, and certainly doesn't offer any sensible 'dialog'.

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

23 years agochange builtin passphrase prompt to use stdout rather than stderr.
Doug MacEachern [Wed, 27 Feb 2002 03:33:38 +0000 (03:33 +0000)] 
change builtin passphrase prompt to use stdout rather than stderr.
and switch to using apr_file api for portability.
stderr has already been redirected to the error_log.
rather than attempting to temporarily rehook it to the terminal,
we print the prompt to stdout before EVP_read_pw_string turns
off tty echo.  which is also more portable.

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

23 years agochanging mod_ssl to do a full startup/teardown on each restart rather
Doug MacEachern [Wed, 27 Feb 2002 03:21:09 +0000 (03:21 +0000)] 
changing mod_ssl to do a full startup/teardown on each restart rather
than hack to only read passphrase on 1st round startup.  this change:
- fixes current segv on restarts (SHARED_MODULE is not defined)
- allows LoadModule ssl_module to be added to httpd.conf on restart
  (was core dumping previously)
- allows certs/keys to be changed on restart provided key is not
  encrypted or SSLPassPhraseDialog is exec.  if key is encrypted and
  SSLPassPhraseDialog is builtin, existing private keys will be reused
  on restart (which happens currently for any type of key/dialog).

note: mod_ssl currently leaks on restart; leaks more with this change.
      fixes to come.

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

23 years agoUse the empty string, not NUL. I should have read my code more closely.
Ryan Bloom [Wed, 27 Feb 2002 00:58:17 +0000 (00:58 +0000)] 
Use the empty string, not NUL.  I should have read my code more closely.

Thanks Cliff for slapping me in the head.

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

23 years agoGrrrrr..... We should really use the correct line endings on all
Ryan Bloom [Wed, 27 Feb 2002 00:39:01 +0000 (00:39 +0000)] 
Grrrrr.....  We should really use the correct line endings on all
platforms.

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

23 years agoForward port of changes in mod_ssl for Apache 1.3 up through mod_ssl
Cliff Woolley [Mon, 25 Feb 2002 04:23:03 +0000 (04:23 +0000)] 
Forward port of changes in mod_ssl for Apache 1.3 up through mod_ssl
version 2.8.7-1.3.23.

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

23 years agoFix bad logging level.
Justin Erenkrantz [Sun, 17 Feb 2002 23:42:49 +0000 (23:42 +0000)] 
Fix bad logging level.

(Why does mod_ssl insist on having its own logging levels?  Bad, bad, bad.)

PR: 9842

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

23 years agoIf the file specified by SSLMutex cannot be created (because the directory does...
Justin Erenkrantz [Sat, 16 Feb 2002 18:35:21 +0000 (18:35 +0000)] 
If the file specified by SSLMutex cannot be created (because the directory      does not exist for example), children will segfault on init without giving      any reason that the user can figure out.  This happens because the module       init in the parent never checks to see if the mutex intialization succeded.     This patch adds this check and a user-friendly error message.

(Justin made one formatting change to this patch.)

Submitted by: Adam Sussman <myddryn@vishnu.vidya.com>
Reviewed by: Justin Erenkrantz

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

23 years ago What happened? 0.9.6b built just dandy without the flags... 0.9.6c won't
William A. Rowe Jr [Tue, 12 Feb 2002 23:19:32 +0000 (23:19 +0000)] 
  What happened?  0.9.6b built just dandy without the flags... 0.9.6c won't
  build for jack without these changes.  Of course they don't harm 0.9.6b
  builders either, unless they are outside of the states/EU/AU and find
  themselves free to ignore IP considerations.

  I'd really like to know _why_ 0.9.6c doesn't configure itself rationally.

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

23 years agoRemove the install_transport_filters hook. The same function can be
Ryan Bloom [Tue, 5 Feb 2002 22:18:49 +0000 (22:18 +0000)] 
Remove the install_transport_filters hook.  The same function can be
acheived with the pre_connection hook.  I have added the socket to the
pre_connection phase to make this possible.
Reviewed by: Bill Stoddard

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

23 years agoSilence a gcc warning about cpType being possibly used uninitialized,
Cliff Woolley [Sun, 3 Feb 2002 01:50:58 +0000 (01:50 +0000)] 
Silence a gcc warning about cpType being possibly used uninitialized,
and constify it while I'm at it.

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

23 years agoUse symbolic names
Martin Kraemer [Thu, 31 Jan 2002 14:55:05 +0000 (14:55 +0000)] 
Use symbolic names

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

23 years agoThe pre_config hook now takes a return value. This allows modules to
Aaron Bannert [Mon, 28 Jan 2002 23:49:40 +0000 (23:49 +0000)] 
The pre_config hook now takes a return value. This allows modules to
cause the server to bail out under error conditions.

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

23 years agoChange ap_get_brigade prototype to remove *readbytes in favor of readbytes.
Justin Erenkrantz [Fri, 25 Jan 2002 01:11:47 +0000 (01:11 +0000)] 
Change ap_get_brigade prototype to remove *readbytes in favor of readbytes.
If you need the length, you should be using apr_brigade_length.  This is
much more consistent.  Of all the places that call ap_get_brigade, only
one (ap_http_filter) needs the length.  This makes it now possible to
pass constants down without assigning them to a temporary variable first.

Also:
- Change proxy_ftp to use EXHAUSTIVE mode (didn't catch its -1 before)
- Fix buglet in mod_ssl that would cause it to return too much data in
  some circumstances

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

23 years ago- Add AP_MODE_SPECULATIVE support to mod_ssl
Justin Erenkrantz [Tue, 22 Jan 2002 06:33:35 +0000 (06:33 +0000)] 
- Add AP_MODE_SPECULATIVE support to mod_ssl
- Protect mod_ssl from dealing with modes it doesn't recognize.

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

23 years agoIf we would exhaust the buffer entirely, set it to NULL rather than
Justin Erenkrantz [Tue, 22 Jan 2002 06:26:07 +0000 (06:26 +0000)] 
If we would exhaust the buffer entirely, set it to NULL rather than
point at the end of the buffer with a length of 0.

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

23 years agoInput filtering prototype change: Socket blocking type should be
Justin Erenkrantz [Sat, 19 Jan 2002 07:45:18 +0000 (07:45 +0000)] 
Input filtering prototype change: Socket blocking type should be
separate from the input filter mode type.

We also no longer look at readbytes to determine the method of
filter operation.  This makes the use of filters more obvious and
allows a wider range of options for input filters modes.

To start with, the new input filter modes are:

AP_MODE_READBYTES (no more than *readbytes returned)
AP_MODE_GETLINE (old *readbytes == 0 case)
AP_MODE_EATCRLF (old AP_MODE_PEEK)
AP_MODE_SPECULATIVE (will be used in a future ap_getline rewrite)
AP_MODE_EXHAUSTIVE (old *readbytes == -1 case)
AP_MODE_INIT (special case for NNTP over SSL)

The block parameter is an apr_read_type_e: APR_BLOCK_READ, APR_NONBLOCK_READ

This also allows cleanup of mod_ssl's handling in the getline case.

Reviewed by: Ryan Bloom (concept), Greg Stein (concept)

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

23 years agomove OpenSSL specific SSL_{get,set}_state macros to the #ifdef'd group of
Doug MacEachern [Fri, 18 Jan 2002 23:26:46 +0000 (23:26 +0000)] 
move OpenSSL specific SSL_{get,set}_state macros to the #ifdef'd group of
macros for OpenSSL in mod_ssl.h

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

23 years agofix for SSLv2 requests
Doug MacEachern [Fri, 18 Jan 2002 00:13:25 +0000 (00:13 +0000)] 
fix for SSLv2 requests

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

23 years ago Clean up several typesaftey (signedness and size) emits.
William A. Rowe Jr [Thu, 17 Jan 2002 15:51:41 +0000 (15:51 +0000)] 
  Clean up several typesaftey (signedness and size) emits.

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

23 years agooutput filter optimizations:
Doug MacEachern [Thu, 17 Jan 2002 05:04:54 +0000 (05:04 +0000)] 
output filter optimizations:
- avoid creating a new bucket brigade for each EOS or FLUSH bucket
- do not pass FLUSH bucket since BIO_bucket_flush() already does so
  if there is any data to flush.
- do not call apr_brigade_destroy(bb); since we will have either
  emptied it or passed it, in which case it will be destroyed further
  down the chain.

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

23 years agoprevent possible segv if SSL_get_current_cipher() returns NULL in
Doug MacEachern [Thu, 17 Jan 2002 04:03:09 +0000 (04:03 +0000)] 
prevent possible segv if  SSL_get_current_cipher() returns NULL in
ssl_var_lookup_ssl_cipher()

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

23 years agoadjust BIO_METHOD initializers for sslc
Doug MacEachern [Thu, 17 Jan 2002 01:35:20 +0000 (01:35 +0000)] 
adjust BIO_METHOD initializers for sslc

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

23 years agorewrite of mod_ssl input filter for better performance and less memory usage
Doug MacEachern [Thu, 17 Jan 2002 00:54:33 +0000 (00:54 +0000)] 
rewrite of mod_ssl input filter for better performance and less memory usage
PR:
Obtained from:
Submitted by:
Reviewed by: Justin Erenkrantz

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

23 years agoDocument future binary compatibility problem.
Ben Laurie [Fri, 11 Jan 2002 16:40:43 +0000 (16:40 +0000)] 
Document future binary compatibility problem.

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

23 years ago The mutex must be pool-managed, not ssl managed. We are encountering
William A. Rowe Jr [Fri, 11 Jan 2002 06:05:18 +0000 (06:05 +0000)] 
  The mutex must be pool-managed, not ssl managed.  We are encountering
  segfaults on Win32 when the cleanup of the mutex occurs after the pool
  was destroyed.

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

23 years ago *) Split all Win32 modules [excluding the core components mod_core,
William A. Rowe Jr [Thu, 10 Jan 2002 08:47:23 +0000 (08:47 +0000)] 
  *) Split all Win32 modules [excluding the core components mod_core,
     mod_so, mod_win32 and the winnt mpm] into individual loadable
     modules, so the administrator may individually disable the former
     compiled-in modules by simply commenting out their LoadModule
     directives.  [William Rowe]

  *) Saved Win32 module authors and porters many future headaches, by
     duplicating the appropriate .h files such as os.h into the include
     directory, including in the build tree.  [William Rowe]

  Also noticed that version stamp resources weren't generated for proxy
  modules, this too is now fixed.

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

23 years ago mod_ssl adjustments to help with using toolkits other than OpenSSL:
Doug MacEachern [Thu, 10 Jan 2002 04:55:19 +0000 (04:55 +0000)] 
 mod_ssl adjustments to help with using toolkits other than OpenSSL:
  Use SSL functions/macros instead of directly dereferencing SSL
  structures wherever possible.
  Add type-casts for the cases where functions return a generic pointer.
  Add $SSL/include to configure search path.
PR:
Obtained from:
Submitted by: Madhusudan Mathihalli <madhusudan_mathihalli@hp.com>
Reviewed by: dougm

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

23 years ago This patch eliminated from the _SHARED_ segment of the scoreboard all
William A. Rowe Jr [Thu, 10 Jan 2002 00:28:00 +0000 (00:28 +0000)] 
  This patch eliminated from the _SHARED_ segment of the scoreboard all
  pointer math.  This is required for portable scoreboards.

  vhost becomes the 'vhost name string' so it now survives ap_generation
  clicks.  next was apparently never used.

  This patch also accounts for the changes to the apr_shm api, and gives
  Win32 the magic of a shared scoreboard.

  Breakage aplenty on non-win32 platforms, I suspect, but this radical
  surgery, and culling of unused functions, was really, really needed.

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

23 years agoget SSLRandomSeed exec: working by passing the proper arguments to apr_proc_create()
Doug MacEachern [Thu, 10 Jan 2002 00:09:04 +0000 (00:09 +0000)] 
get SSLRandomSeed exec: working by passing the proper arguments to apr_proc_create()

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

23 years agocall ssl_mutex_kill() during module cleanup
Doug MacEachern [Wed, 9 Jan 2002 22:21:34 +0000 (22:21 +0000)] 
call ssl_mutex_kill() during module cleanup

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

23 years agoget SSLPassPhraseDialog exec: working by passing the proper arguments
Doug MacEachern [Wed, 9 Jan 2002 19:24:32 +0000 (19:24 +0000)] 
get SSLPassPhraseDialog exec: working by passing the proper arguments
to apr_proc_create()
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agohandle the disappearance of apr_lock_create_np() and
Jeff Trawick [Sat, 29 Dec 2001 23:16:24 +0000 (23:16 +0000)] 
handle the disappearance of apr_lock_create_np() and
apr_proc_mutex_create_np() and the new parameter to
apr_lock_create() and apr_proc_mutex_create()

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

23 years agotiny cleanup to remove bogus SCOREBOARD_SIZE define
Jeff Trawick [Sat, 29 Dec 2001 19:55:46 +0000 (19:55 +0000)] 
tiny cleanup to remove bogus SCOREBOARD_SIZE define

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

23 years ago Close a real GP fault. This is the _wrong_solution_, but stops the
William A. Rowe Jr [Sat, 29 Dec 2001 05:02:10 +0000 (05:02 +0000)] 
  Close a real GP fault.  This is the _wrong_solution_, but stops the
  segfaults against very odd RAND_seed errors given garbage in.

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

23 years ago Correct case comparison typematch
William A. Rowe Jr [Sun, 2 Dec 2001 01:26:45 +0000 (01:26 +0000)] 
  Correct case comparison typematch

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

23 years agoremove churn_output() function and calls to it.
Doug MacEachern [Sat, 1 Dec 2001 02:11:04 +0000 (02:11 +0000)] 
remove churn_output() function and calls to it.
when SSL needs to flush (e.g. during SSL_accept()) it will call BIO_flush()
which will trigger a call to bio_bucket_ctrl() -> BIO_bucket_flush().
so we only need to flush the output ourselves if we receive an EOS or
FLUSH bucket.

BIO_bucket_flush() and churn_output() had been turning up near the top
of the profile with gprof.  churn_output() of course has now vanished
and BIO_bucket_flush() has dropped, being called far less than before.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoget rid of warning introduced by previous patch
Doug MacEachern [Thu, 29 Nov 2001 07:30:30 +0000 (07:30 +0000)] 
get rid of warning introduced by previous patch

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

23 years agothe client cert X509_NAME_oneline() is only used if SSLFakeBasicAuth
Doug MacEachern [Thu, 29 Nov 2001 07:07:36 +0000 (07:07 +0000)] 
the client cert X509_NAME_oneline() is only used if SSLFakeBasicAuth
is happening.  so avoid calling that unless needed and just stash a
pointer to the client cert for the boolean checks that the client
provided a cert.
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoavoid a call to X509_NAME_oneline() and ASN1_INTEGER_get() in
Doug MacEachern [Thu, 29 Nov 2001 06:52:18 +0000 (06:52 +0000)] 
avoid a call to X509_NAME_oneline() and ASN1_INTEGER_get() in
ssl_callback_SSLVerify_CRL() unless SSLLogLevel >= info, otherwise the
expense is unused.
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoget rid of ssl_log_applies() function. it does more than we need and
Doug MacEachern [Thu, 29 Nov 2001 06:34:53 +0000 (06:34 +0000)] 
get rid of ssl_log_applies() function.  it does more than we need and
what should be done with a macro.  it was only used once anyhow.
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agossl_callback_SSLVerify() was calling (the expensive) X509_NAME_oneline()
Doug MacEachern [Thu, 29 Nov 2001 06:27:41 +0000 (06:27 +0000)] 
ssl_callback_SSLVerify() was calling (the expensive) X509_NAME_oneline()
function and free() of the return value twice each, for logging
regardless of SSLLogLevel.  changed to happen only if SSLLogLevel >= trace
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agofix for last change that removed ssl_util_getmodconfig():
Doug MacEachern [Thu, 29 Nov 2001 06:15:01 +0000 (06:15 +0000)] 
fix for last change that removed ssl_util_getmodconfig():
go back to using s->process->pool userdata, but just to store the
global module config during startup so we only create _one_ SSLModConfigRec.
(didn't realize this function was called in both ssl_init_Module and
ssl_config_server_create)
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agossl_util_getmodconfig() and ssl_util_getmodconfig_ssl() show up high
Doug MacEachern [Thu, 29 Nov 2001 05:45:48 +0000 (05:45 +0000)] 
ssl_util_getmodconfig() and ssl_util_getmodconfig_ssl() show up high
in the gprof profile.  there's no need for the "global" SSLModConfigRec
to live in the s->process->pool userdata table.  we now just point the
SSLSrvConfigRec in each server_rec.module_config to the SSLModConfigRec
so we can access it directly which is much faster.
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoSSL_rand() does a mutex lock/unlock with threaded MPMs, so collapse
Doug MacEachern [Thu, 29 Nov 2001 05:17:38 +0000 (05:17 +0000)] 
SSL_rand() does a mutex lock/unlock with threaded MPMs, so collapse
two calls that seed pid and time into one.
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agomove srand() call from ssl_rand_choosenum() to ssl_init_Child()
Doug MacEachern [Thu, 29 Nov 2001 05:08:47 +0000 (05:08 +0000)] 
move srand() call from ssl_rand_choosenum() to ssl_init_Child()

this was being called twice per-connection with 'SSLRandom connect builtin'
configured (which is in the default config)

this also gets rid of two time() syscalls per-connection

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agocall getpid() once at child init and save in the SSLModConfigRec
Doug MacEachern [Thu, 29 Nov 2001 05:04:22 +0000 (05:04 +0000)] 
call getpid() once at child init and save in the SSLModConfigRec
to avoid getpid() calls at request time
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoFix awkward grammar in some of mod_ssl's error messages.
Aaron Bannert [Thu, 29 Nov 2001 00:07:10 +0000 (00:07 +0000)] 
Fix awkward grammar in some of mod_ssl's error messages.

Submitted by: Ryan Morgan <rmorgan@covalent.net>
Reviewed by: Aaron Bannert

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

23 years agocalculate VHostID length at startup rather than request time.
Doug MacEachern [Wed, 28 Nov 2001 05:50:55 +0000 (05:50 +0000)] 
calculate VHostID length at startup rather than request time.
change ap_md5() call in ssl_hook_pre_connection() to ap_md5_binary()
that uses the precalculated sc->nVHostID_length to avoid a strlen() call.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoavoid calling ssl_util_vhostid() (and apr_sprintf underneath) at
Doug MacEachern [Wed, 28 Nov 2001 05:44:50 +0000 (05:44 +0000)] 
avoid calling ssl_util_vhostid() (and apr_sprintf underneath) at
request time by calling it at startup time and saving the value in the
SSLSrvConfigRec.
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoreplace strlen(cpVHostMD5) with MD5_DIGESTSIZE*2 in ssl_hook_pre_connection()
Doug MacEachern [Wed, 28 Nov 2001 05:05:04 +0000 (05:05 +0000)] 
replace strlen(cpVHostMD5) with MD5_DIGESTSIZE*2 in ssl_hook_pre_connection()
since we know the string returned by ap_md5() will always be that length
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoremove unused ssl::handshake::timeout references
Doug MacEachern [Wed, 28 Nov 2001 04:31:34 +0000 (04:31 +0000)] 
remove unused ssl::handshake::timeout references
(core handles all timeouts)
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoremove setting of ap::{http::method,default::port} r->notes.
Doug MacEachern [Wed, 28 Nov 2001 04:24:07 +0000 (04:24 +0000)] 
remove setting of ap::{http::method,default::port} r->notes.
these notes are unused, they handled by hooks.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agomoving chunk of logic that deals with writing ssl data from
Doug MacEachern [Wed, 28 Nov 2001 03:15:41 +0000 (03:15 +0000)] 
moving chunk of logic that deals with writing ssl data from
ssl_io_filter_Output() to a new ssl_filter_write() function.
this will make it easier to optimize how we deal with file buckets
than cannot be mmaped.
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoimplement a custom BIO which allows us to hook SSL_write directly into
Doug MacEachern [Tue, 27 Nov 2001 23:37:20 +0000 (23:37 +0000)] 
implement a custom BIO which allows us to hook SSL_write directly into
an apr_bucket_brigade and use transient buckets with the SSL
malloc-ed buffer, rather than copying into a mem BIO.

also allows us to pass the brigade as data is being written
rather than buffering up the entire response in the mem BIO.

PR:
Obtained from:
Submitted by:
Reviewed by: Justin Erenkrantz, Ryan Bloom

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

23 years agodon't bother setting the ssl info callback unless SSLLogLevel >= info
Doug MacEachern [Sat, 24 Nov 2001 00:40:15 +0000 (00:40 +0000)] 
don't bother setting the ssl info callback unless SSLLogLevel >= info
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoModify post_config hook so that it can return a error,
Ian Holsman [Fri, 23 Nov 2001 16:35:22 +0000 (16:35 +0000)] 
Modify post_config hook so that it can return a error,
causing the server not to start.
previous method was to call exit(1) which would not fail
gracefully

PR:
Obtained from:
Submitted by:
Reviewed by: (Idea only Jeff Trawick)

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

23 years agodont va_start() in ssl_log() unless we are actually going to log something
Doug MacEachern [Thu, 22 Nov 2001 02:58:07 +0000 (02:58 +0000)] 
dont va_start() in ssl_log() unless we are actually going to log something

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

23 years agoavoid a couple of calls to ssl_util_vhostid() and apr_psprintf()
Doug MacEachern [Thu, 22 Nov 2001 02:44:35 +0000 (02:44 +0000)] 
avoid a couple of calls to ssl_util_vhostid() and apr_psprintf()
unless loglevel >= SSL_LOG_INFO
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agooptimize lookup of ssl-{unclean,accurate}-shutdown flags:
Doug MacEachern [Thu, 22 Nov 2001 02:23:09 +0000 (02:23 +0000)] 
optimize lookup of ssl-{unclean,accurate}-shutdown flags:
- only look through the table once, rather than 2 apr_table_gets()
- case-sensitive and use strcmp() as little as possible
- only lookup once per-connection, as the flags will not change across
  keepalive requests
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoreturn from ssl_callback_LogTracingState if sc->nLogLevel < SSL_LOG_INFO
Doug MacEachern [Thu, 22 Nov 2001 01:40:26 +0000 (01:40 +0000)] 
return from ssl_callback_LogTracingState if sc->nLogLevel < SSL_LOG_INFO
else there are 5 (expensive!) calls made to ssl_var_lookup on every request
for info that will never be logged
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoremove AP_CTX_* macros which are no longer used
Doug MacEachern [Thu, 22 Nov 2001 00:43:43 +0000 (00:43 +0000)] 
remove AP_CTX_* macros which are no longer used

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

23 years agoget rid of 'apctx' table that used to live in SSL_get_app_data2(ssl)
Doug MacEachern [Thu, 22 Nov 2001 00:42:35 +0000 (00:42 +0000)] 
get rid of 'apctx' table that used to live in SSL_get_app_data2(ssl)
change app_data2 to be the request_rec itself.
if something needs per-request context in the future,
it can use r->request_config

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agomove c->notes.ssl::verify::depth to SSLConnRec.verify_depth
Doug MacEachern [Thu, 22 Nov 2001 00:25:00 +0000 (00:25 +0000)] 
move c->notes.ssl::verify::depth to SSLConnRec.verify_depth
note: may actually be removed unless somebody can figure out why it is in
there to begin with
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoget rid of SSL_get_app_data2_idx() which had a race condition when
Doug MacEachern [Wed, 21 Nov 2001 22:58:28 +0000 (22:58 +0000)] 
get rid of SSL_get_app_data2_idx() which had a race condition when
writing to app_data2_idx, and another inside OpenSSL when calling
SSL_get_ex_new_index().
add SSL_init_app_data2_idx() to provide the same functionality but in
a safe place: called during ssl_init_Module
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agomove c->notes.ssl::verify::{info,error} to SSLConnRec.verify_{info,error}
Doug MacEachern [Wed, 21 Nov 2001 22:29:14 +0000 (22:29 +0000)] 
move c->notes.ssl::verify::{info,error} to SSLConnRec.verify_{info,error}
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agomove c->notes.ssl::flag::{unclean,accurate}-shutdown to SSLConnRec.shutdown_type
Doug MacEachern [Wed, 21 Nov 2001 19:22:46 +0000 (19:22 +0000)] 
move c->notes.ssl::flag::{unclean,accurate}-shutdown to SSLConnRec.shutdown_type
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agomove c->notes.ssl::client::dn to SSLConnRec.client_dn
Doug MacEachern [Wed, 21 Nov 2001 18:08:33 +0000 (18:08 +0000)] 
move c->notes.ssl::client::dn to SSLConnRec.client_dn
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agostart moving c->notes usage to a new SSLConnRec structure hanging off of
Doug MacEachern [Wed, 21 Nov 2001 17:45:24 +0000 (17:45 +0000)] 
start moving c->notes usage to a new SSLConnRec structure hanging off of
c->conn_config
PR:
Obtained from:
Submitted by:
Reviewed by: rbb, madhu

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

23 years agoGets us compiling again on FreeBSD. Adds conditional compilation around
Aaron Bannert [Tue, 20 Nov 2001 22:23:51 +0000 (22:23 +0000)] 
Gets us compiling again on FreeBSD. Adds conditional compilation around
thread mutex routines for when we don't have APR_HAS_THREADS.

Submitted by: Justin Erenkrantz
Reviewed by: Aaron Bannert

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

23 years agoNo good reason to have this in <> instead of "". Having it in <> might
Aaron Bannert [Tue, 20 Nov 2001 21:34:43 +0000 (21:34 +0000)] 
No good reason to have this in <> instead of "". Having it in <> might
interact badly with makefile dependency generators, too.

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

23 years agoadd input filter AP_MODE_INIT support to handshake before reading
Doug MacEachern [Mon, 19 Nov 2001 22:37:57 +0000 (22:37 +0000)] 
add input filter AP_MODE_INIT support to handshake before reading
request data from the client.
PR:
Obtained from:
Submitted by: dougm
Reviewed by: wrowe

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

23 years agoConversion from old apr_lock_t to new apr_thread_mutex_t
Aaron Bannert [Fri, 16 Nov 2001 18:28:25 +0000 (18:28 +0000)] 
Conversion from old apr_lock_t to new apr_thread_mutex_t
(only converting INTRAPROCESS locks at this time).

I don't see how this used to work, which also means I'm not entirely
sure if it works now. It really didn't look like it was allocating
the correct size before. It compiles and SSL still works in my limited
tests, but I'd appreciate a second opinion.

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

23 years agoFix the SSL filter logic. The SSL filter is not a network filter, because
Ryan Bloom [Thu, 15 Nov 2001 20:55:13 +0000 (20:55 +0000)] 
Fix the SSL filter logic.  The SSL filter is not a network filter, because
it does not actually do the reading and writing to the network.  By
moving that filter to in between CONNECTION and NETWORK filters, we ensure
that SSL is always called before the core.

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

23 years agoStyle updates before I convert to the new lock type.
Aaron Bannert [Thu, 15 Nov 2001 17:29:01 +0000 (17:29 +0000)] 
Style updates before I convert to the new lock type.

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

23 years agoIgnore *.slo files.
Aaron Bannert [Thu, 15 Nov 2001 02:06:06 +0000 (02:06 +0000)] 
Ignore *.slo files.

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

23 years agoTurns out this is causing problems on my linux box (libtool 1.3.5), so
Aaron Bannert [Wed, 14 Nov 2001 18:56:18 +0000 (18:56 +0000)] 
Turns out this is causing problems on my linux box (libtool 1.3.5), so
I'm going to remove it until I or someone else can come up with a better
way to check for and link against libssl and libcrypto for mod_ssl.so.

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

23 years agofix segv triggered by recent ap_lingering_close change
Doug MacEachern [Mon, 12 Nov 2001 22:01:14 +0000 (22:01 +0000)] 
fix segv triggered by recent ap_lingering_close change
need to set SSLFilterRec.pssl = NULL when ssl_hook_CloseConnection is called
otherwise, ap_lingering_close -> ap_flush_conn will call ssl_io_filter_Output
which thinks it can still use the SSLFilterRec.pssl
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoGets mod_ssl building/loading as a DSO on some platforms (like HPUX).
Aaron Bannert [Wed, 7 Nov 2001 19:42:07 +0000 (19:42 +0000)] 
Gets mod_ssl building/loading as a DSO on some platforms (like HPUX).

Submitted by: Madhu Mathihalli <madhusudan_mathihalli@hp.com>

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

23 years agoDon't close the dbm until after we have copied the datum retrieved by the fetch
Bill Stoddard [Wed, 7 Nov 2001 14:09:36 +0000 (14:09 +0000)] 
Don't close the dbm until after we have copied the datum retrieved by the fetch
into a local buffer.

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

23 years agoCheck the return code properly.
Bill Stoddard [Wed, 7 Nov 2001 01:43:20 +0000 (01:43 +0000)] 
Check the return code properly.

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

23 years ago Fix a nasty GP fault... stop testing buckets after they are passed!!!
William A. Rowe Jr [Sat, 20 Oct 2001 20:43:37 +0000 (20:43 +0000)] 
  Fix a nasty GP fault... stop testing buckets after they are passed!!!

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

23 years ago It is absolutely invalid practice to test 'prot' bits to determine if a
William A. Rowe Jr [Wed, 17 Oct 2001 00:03:22 +0000 (00:03 +0000)] 
  It is absolutely invalid practice to test 'prot' bits to determine if a
  file is readable.  The only acceptable means of testing readability is to
  open it for reading, due to discrepancies between permissions, DACLs and
  SACLS.  Even Linux hackers are gonna need to learn that lesson if they
  plan to do any DOD or Gov work once DACL-enhanced Linux is adopted.

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

23 years agoWell, now I know what the bio_is_renegotiating call was for.
Justin Erenkrantz [Fri, 12 Oct 2001 06:27:04 +0000 (06:27 +0000)] 
Well, now I know what the bio_is_renegotiating call was for.

Place a big-ass comment there so that whomever comes next isn't stuck
at a cryptic call that they don't understand with a dinky comment.
Hopefully, this makes sense.  Someone more familiar with OpenSSL should
verify the comment.

This fix also requires the normalize call to be performed before
churn_input so that we don't enter churn_input with a 0-length ctx->b
brigade.

All httpd-test tests (except for the module/negotiation test) pass now.

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

23 years agoIf we passed the bucket to ap_pass_brigade (because it was EOS or FLUSH),
Justin Erenkrantz [Fri, 12 Oct 2001 04:59:19 +0000 (04:59 +0000)] 
If we passed the bucket to ap_pass_brigade (because it was EOS or FLUSH),
we shouldn't delete it.

Thanks to Doug for pointing out that something broke.

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

23 years agoLose the magic number and use the central #define AP_IOBUFSIZE.
Justin Erenkrantz [Fri, 12 Oct 2001 02:00:41 +0000 (02:00 +0000)] 
Lose the magic number and use the central #define AP_IOBUFSIZE.

Hey, I've never seen it in actual use anywhere, so I didn't know.

Thanks to Roy for pointing it out.

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

23 years agoThis is the mod_ssl input filtering rewrite. Lots of stuff here. I also
Justin Erenkrantz [Thu, 11 Oct 2001 01:49:21 +0000 (01:49 +0000)] 
This is the mod_ssl input filtering rewrite.  Lots of stuff here.  I also
changed some of the style issues within the filtering code to conform to
the rest of the server.

Various incarnations of this patch have been posted to dev@httpd without
feedback.  Now that it passes all of the httpd-test cases (with the
exception of module/negotiation test which fails without mod_ssl anyway),
it is time to check it in.

Please review and test.  We are under C-T-R rules, so I'm going to take
advantage of that and commit it now.  I have tested this about as much
as I can and it seems to work from everything I can give to it.
Considering that mod_ssl was broken before this commit, this is an
improvement.

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

23 years agoAh, I didn't see that churn is only used on input - rename the function
Justin Erenkrantz [Thu, 4 Oct 2001 17:50:39 +0000 (17:50 +0000)] 
Ah, I didn't see that churn is only used on input - rename the function
to match churn_output.  =)

Yes, I'm slowly working on fixing mod_ssl...

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

23 years ago BIO_write returns an int. Whacha gonna do? Kill the last non-ab warning.
William A. Rowe Jr [Mon, 1 Oct 2001 16:07:17 +0000 (16:07 +0000)] 
  BIO_write returns an int.  Whacha gonna do?  Kill the last non-ab warning.

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

23 years agoAllow VPATH builds for SSL.
Ryan Bloom [Tue, 18 Sep 2001 20:31:37 +0000 (20:31 +0000)] 
Allow VPATH builds for SSL.
Submitted by:  Cody Sherr <csherr@covalent.net>

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

23 years ago I don't seriously expect this solves the segfault ... but it does make
William A. Rowe Jr [Mon, 10 Sep 2001 04:21:40 +0000 (04:21 +0000)] 
  I don't seriously expect this solves the segfault ... but it does make
  the code more legible, and protects particularly ugly unset values.

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

23 years agodont block when handling non-ssl request
Doug MacEachern [Thu, 30 Aug 2001 05:33:57 +0000 (05:33 +0000)] 
dont block when handling non-ssl request

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

23 years agoAllow mod_ssl to send back an error message if an HTTP request is sent
Ryan Bloom [Mon, 27 Aug 2001 06:00:51 +0000 (06:00 +0000)] 
Allow mod_ssl to send back an error message if an HTTP request is sent
over an HTTPS connection.  This also adds an ap_remove_input_filter
function, which should be used to remove the SSL input filter in this
case, as soon as this code is stressed a bit more.

For right now, we are sending the same message that we used to send in
mod_ssl for Apache 1.3.

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

23 years ago Toggle the /Zi flag to allow all supportd versions of VC (5, 6, 7) to
William A. Rowe Jr [Sun, 26 Aug 2001 05:21:50 +0000 (05:21 +0000)] 
  Toggle the /Zi flag to allow all supportd versions of VC (5, 6, 7) to
  build 'out of the box' in debugging mode.

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

23 years agoforce OpenSSL to ignore process local-caching and to always
Doug MacEachern [Fri, 24 Aug 2001 23:25:14 +0000 (23:25 +0000)] 
force OpenSSL to ignore process local-caching and to always
get/set/delete sessions using mod_ssl's callbacks
PR:
Obtained from:
Submitted by:   Madhusudan Mathihalli <madhusudan_mathihalli@hp.com>
Reviewed by:    dougm

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

23 years agothese #ifs were really confusing emacs indentation, easier for humans to parse this...
Doug MacEachern [Fri, 24 Aug 2001 23:17:22 +0000 (23:17 +0000)] 
these #ifs were really confusing emacs indentation, easier for humans to parse this way too

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

23 years agoenable i/o debugging
Doug MacEachern [Fri, 24 Aug 2001 18:06:47 +0000 (18:06 +0000)] 
enable i/o debugging

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

23 years agochurn_output should return the value of ap_pass_brigade
Doug MacEachern [Fri, 24 Aug 2001 17:17:35 +0000 (17:17 +0000)] 
churn_output should return the value of ap_pass_brigade

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

23 years agossl_var_lookup() is enabled
Doug MacEachern [Fri, 24 Aug 2001 06:58:00 +0000 (06:58 +0000)] 
ssl_var_lookup() is enabled
apr optional functions do not need to be unregistered
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoapr_os_thread_current() call needs #if APR_HAS_THREADS protection
Doug MacEachern [Fri, 24 Aug 2001 06:34:26 +0000 (06:34 +0000)] 
apr_os_thread_current() call needs #if APR_HAS_THREADS protection
PR:
Obtained from:
Submitted by:    Justin Erenkrantz <jerenkrantz@ebuilt.com>
Reviewed by:

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