/[Apache-SVN]
ViewVC logotype

Revision 1877349


Jump to revision: Previous Next
Author: jorton
Date: Mon May 4 09:23:03 2020 UTC (3 years, 11 months ago)
Changed paths: 5
Log Message:
mod_ssl: Calculate the MD5 digest used as the session context once per
vhost at startup, rather than building it for each new connection.

* modules/ssl/ssl_private.h (struct SSLSrvConfigRec):
  Replace vhost_id_len field with vhost_md5.

* modules/ssl/ssl_engine_init.c (ssl_init_Module): Build the
  sc->vhost_md5 hash here.  
   
* modules/ssl/mod_ssl.c: Fail at compile time if the
  SSL_set_session_id_context() API constraint on context length is
  violated.
  (ssl_init_ssl_connection): Use sc->vhost_md5.

* modules/ssl/ssl_engine_kernel.c (ssl_find_vhost): Use sc->vhost_md5
  after renegotiation.


Changed paths

Path Details
Directoryhttpd/httpd/trunk/modules/ssl/mod_ssl.c modified , text changed
Directoryhttpd/httpd/trunk/modules/ssl/ssl_engine_config.c modified , text changed
Directoryhttpd/httpd/trunk/modules/ssl/ssl_engine_init.c modified , text changed
Directoryhttpd/httpd/trunk/modules/ssl/ssl_engine_kernel.c modified , text changed
Directoryhttpd/httpd/trunk/modules/ssl/ssl_private.h modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26