aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_tls.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-29 14:28:53 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-29 14:28:53 +0100
commit81fedc9a08fafb1f2cbbe6568a6e904ebbea25b8 (patch)
tree6f6f441b57007fd890e1bf578b29f9cce8295946 /plugins/mod_tls.lua
parent762a39c8d024c74897747c35f51cbbf8018fae42 (diff)
downloadprosody-81fedc9a08fafb1f2cbbe6568a6e904ebbea25b8.tar.gz
prosody-81fedc9a08fafb1f2cbbe6568a6e904ebbea25b8.zip
sessionmanager, mod_tls: Mark a session as secure when TLS is active
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r--plugins/mod_tls.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index b382f318..85dc6bba 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -19,6 +19,7 @@ module:add_handler("c2s_unauthed", "starttls", xmlns_starttls,
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");