dovecot-2.2: lib-ssl-iostream: Name SSL iostreams based on paren...

dovecot at dovecot.org dovecot at dovecot.org
Sat Jul 28 17:56:05 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/76d492963638
changeset: 14722:76d492963638
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jul 28 17:34:11 2012 +0300
description:
lib-ssl-iostream: Name SSL iostreams based on parent streams.

diffstat:

 src/lib-ssl-iostream/iostream-openssl.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r c4bef64d28ac -r 76d492963638 src/lib-ssl-iostream/iostream-openssl.c
--- a/src/lib-ssl-iostream/iostream-openssl.c	Sat Jul 28 17:33:45 2012 +0300
+++ b/src/lib-ssl-iostream/iostream-openssl.c	Sat Jul 28 17:34:11 2012 +0300
@@ -222,6 +222,10 @@
 
 	*input = i_stream_create_ssl(ssl_io);
 	*output = o_stream_create_ssl(ssl_io);
+	i_stream_set_name(*input, t_strconcat("SSL ",
+		i_stream_get_name(ssl_io->plain_input), NULL));
+	o_stream_set_name(*output, t_strconcat("SSL ",
+		o_stream_get_name(ssl_io->plain_output), NULL));
 
 	if (ssl_io->plain_output->real_stream->error_handling_disabled)
 		o_stream_set_no_error_handling(*output, TRUE);


More information about the dovecot-cvs mailing list