]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_ssl: Calculate the MD5 digest used as the session context once per
authorJoe Orton <jorton@apache.org>
Mon, 4 May 2020 09:23:03 +0000 (09:23 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 4 May 2020 09:23:03 +0000 (09:23 +0000)
commitccc38eab462e11a50d9ac4de4b64f3845ded60de
tree3090c0aa84d68e9b496e72bb23519117a1f88133
parent37de2054b37f531f090010d554e6ab373b7521b0
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.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877349 13f79535-47bb-0310-9956-ffa450edef68
modules/ssl/mod_ssl.c
modules/ssl/ssl_engine_config.c
modules/ssl/ssl_engine_init.c
modules/ssl/ssl_engine_kernel.c
modules/ssl/ssl_private.h