]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_ssl: Add SSLClientHelloVars directive which exposes various
authorJoe Orton <jorton@apache.org>
Tue, 1 Oct 2024 16:09:11 +0000 (16:09 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 1 Oct 2024 16:09:11 +0000 (16:09 +0000)
commite9915b2bdb47a0dca4daa144a41a3c23edc3a59a
tree216ad7e8c204f8d426684007fa37ed4678cb0969
parentcbadd6623686243f9b71a07557b017da65359ab6
mod_ssl: Add SSLClientHelloVars directive which exposes various
ClientHello properties in new SSL_CLIENTHELLO_* variables.

* modules/ssl/ssl_engine_kernel.c (ssl_hook_Fixup_vars): Add
  SSL_CLIENTHELLO_* vars.
  (copy_clienthello_vars): New function.
  (ssl_callback_ClientHello): Call it when needed.

* modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_clienthello): New
  function.
  (ssl_var_lookup_ssl): Call it for SSL_CLIENTHELLO_*.

* modules/ssl/ssl_private.h (modssl_clienthello_vars): Add type.
  (SSLConnRec): Add clienthello_vars pointer.

* modules/ssl/ssl_engine_config.c, modules/ssl/mod_ssl.c: Add handling
  of new SSLClientHelloVars directive.

Submitted by: Charles Smutz <csmutz gmail.com>
Github: closes #483

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1921074 13f79535-47bb-0310-9956-ffa450edef68
changes-entries/ssl-hello-vars.txt [new file with mode: 0644]
docs/manual/mod/mod_ssl.xml
modules/ssl/mod_ssl.c
modules/ssl/ssl_engine_config.c
modules/ssl/ssl_engine_kernel.c
modules/ssl/ssl_engine_vars.c
modules/ssl/ssl_private.h