Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
1212:3be23cf5a659 | 1213:de66fa750daf |
---|---|
17 if session.conn.starttls then | 17 if session.conn.starttls then |
18 session.send(st.stanza("proceed", { xmlns = xmlns_starttls })); | 18 session.send(st.stanza("proceed", { xmlns = xmlns_starttls })); |
19 session:reset_stream(); | 19 session:reset_stream(); |
20 session.conn.starttls(); | 20 session.conn.starttls(); |
21 session.log("info", "TLS negotiation started..."); | 21 session.log("info", "TLS negotiation started..."); |
22 session.secure = false; | |
22 else | 23 else |
23 -- FIXME: What reply? | 24 -- FIXME: What reply? |
24 session.log("warn", "Attempt to start TLS, but TLS is not available on this connection"); | 25 session.log("warn", "Attempt to start TLS, but TLS is not available on this connection"); |
25 end | 26 end |
26 end); | 27 end); |