]> granicus.if.org Git - apache/commit
Create DH parameters from OpenSSL at module init, avoiding (very
authorJoe Orton <jorton@apache.org>
Wed, 28 May 2014 19:14:28 +0000 (19:14 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 28 May 2014 19:14:28 +0000 (19:14 +0000)
commitd3eac27e32ff73c711856343033d089a25b58ea4
treeecff457e0a29c7d831575a8eee3b13cf3b493eef
parent6bf7e3d2231ea6e3824cb02bd0b9b5d6ec7ef41f
Create DH parameters from OpenSSL at module init, avoiding (very
minor) race and leaks:

* modules/ssl/ssl_engine_init.c (make_dh_params): Moved/rejigged
  variant of make_get_dh() macro.
  (init_dh_params, free_dh_params): New functions.
  (modssl_get_dh_params): Split out from ssl_callback_TmpDH.
  (ssl_init_Module, ssl_init_ModuleKill): Use new init_/free_.

* modules/ssl/ssl_engine_kernel.c: Moved out DH parameter handling.
  (ssl_callback_TmpDH): Use modssl_get_dh_params.

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