Diff

plugins/mod_tls.lua @ 1213:de66fa750daf

sessionmanager, mod_tls: Mark a session as secure when TLS is active
author Matthew Wild <mwild1@gmail.com>
date Fri, 29 May 2009 14:28:53 +0100
parent 896:2c0b9e3c11c3
child 1219:f14e08a0ae7f
line wrap: on
line diff
--- a/plugins/mod_tls.lua	Thu May 28 20:39:32 2009 +0100
+++ b/plugins/mod_tls.lua	Fri May 29 14:28:53 2009 +0100
@@ -19,6 +19,7 @@
 				session:reset_stream();
 				session.conn.starttls();
 				session.log("info", "TLS negotiation started...");
+				session.secure = false;
 			else
 				-- FIXME: What reply?
 				session.log("warn", "Attempt to start TLS, but TLS is not available on this connection");