diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-05-29 14:28:53 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-05-29 14:28:53 +0100 |
commit | 81fedc9a08fafb1f2cbbe6568a6e904ebbea25b8 (patch) | |
tree | 6f6f441b57007fd890e1bf578b29f9cce8295946 /plugins/mod_tls.lua | |
parent | 762a39c8d024c74897747c35f51cbbf8018fae42 (diff) | |
download | prosody-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.lua | 1 |
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"); |