dovecot-2.0: Fixed SSL parameter file reading in login processes.

dovecot at dovecot.org dovecot at dovecot.org
Tue May 5 03:50:19 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/5595d6d07a47
changeset: 9217:5595d6d07a47
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 04 20:49:31 2009 -0400
description:
Fixed SSL parameter file reading in login processes.

diffstat:

1 file changed, 5 insertions(+)
src/login-common/ssl-proxy-openssl.c |    5 +++++

diffs (22 lines):

diff -r 8d4b7abdcf3a -r 5595d6d07a47 src/login-common/ssl-proxy-openssl.c
--- a/src/login-common/ssl-proxy-openssl.c	Mon May 04 20:32:44 2009 -0400
+++ b/src/login-common/ssl-proxy-openssl.c	Mon May 04 20:49:31 2009 -0400
@@ -26,6 +26,8 @@
 
 /* Check every 30 minutes if parameters file has been updated */
 #define SSL_PARAMFILE_CHECK_INTERVAL (60*30)
+
+#define SSL_PARAMETERS_FILENAME "ssl-parameters.dat"
 
 enum ssl_io_action {
 	SSL_ADD_INPUT,
@@ -902,6 +904,9 @@ void ssl_proxy_init(void)
 	   initialized though. */
 	(void)RAND_bytes(&buf, 1);
 
+	memset(&ssl_params, 0, sizeof(ssl_params));
+	ssl_params.fname = SSL_PARAMETERS_FILENAME;
+
 	ssl_proxy_count = 0;
         ssl_proxies = NULL;
 	ssl_initialized = TRUE;


More information about the dovecot-cvs mailing list