Mercurial > prosody-hg
comparison plugins/mod_tls.lua @ 1926:e1c5b537f240
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 :)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 06 Oct 2009 10:34:13 +0100 |
| parents | da49a59dff7c |
| children | 82342e7f1b84 |
comparison
equal
deleted
inserted
replaced
| 1925:6897bd311afa | 1926:e1c5b537f240 |
|---|---|
| 85 function (session, stanza) | 85 function (session, stanza) |
| 86 module:log("debug", "Proceeding with TLS on s2sout..."); | 86 module:log("debug", "Proceeding with TLS on s2sout..."); |
| 87 local format, to_host, from_host = string.format, session.to_host, session.from_host; | 87 local format, to_host, from_host = string.format, session.to_host, session.from_host; |
| 88 session:reset_stream(); | 88 session:reset_stream(); |
| 89 session.conn.starttls(true); | 89 session.conn.starttls(true); |
| 90 session.secure = false; | |
| 90 return true; | 91 return true; |
| 91 end); | 92 end); |
