mod_tls: Mark sessions as not secure when negotiating outward TLS, so they get marked secure later. Fixes missing (encrypted) for outgoing sessions in s2s:show(). Thanks albert, McKael :)

Tue, 06 Oct 2009 10:34:13 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 06 Oct 2009 10:34:13 +0100
changeset 1926
e1c5b537f240
parent 1925
6897bd311afa
child 1927
c3384860e23f

mod_tls: Mark sessions as not secure when negotiating outward TLS, so they get marked secure later. Fixes missing (encrypted) for outgoing sessions in s2s:show(). Thanks albert, McKael :)

plugins/mod_tls.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_tls.lua	Mon Oct 05 22:15:32 2009 +0100
+++ b/plugins/mod_tls.lua	Tue Oct 06 10:34:13 2009 +0100
@@ -87,5 +87,6 @@
 			local format, to_host, from_host = string.format, session.to_host, session.from_host;
 			session:reset_stream();
 			session.conn.starttls(true);
+			session.secure = false;
 			return true;
 		end);

mercurial