Comparison

plugins/mod_tls.lua @ 3397:f376f0bd1d1f

mod_tls: Remove extraneous flag to starttls() for s2sout connecections
author Matthew Wild <mwild1@gmail.com>
date Thu, 22 Jul 2010 13:13:28 +0100
parent 2933:e68ff49fa79b
child 3571:675d65036f31
comparison
equal deleted inserted replaced
3396:23cf369ed1c3 3397:f376f0bd1d1f
81 81
82 module:hook_stanza(xmlns_starttls, "proceed", function (session, stanza) 82 module:hook_stanza(xmlns_starttls, "proceed", function (session, stanza)
83 module:log("debug", "Proceeding with TLS on s2sout..."); 83 module:log("debug", "Proceeding with TLS on s2sout...");
84 session:reset_stream(); 84 session:reset_stream();
85 local ssl_ctx = session.from_host and hosts[session.from_host].ssl_ctx or global_ssl_ctx; 85 local ssl_ctx = session.from_host and hosts[session.from_host].ssl_ctx or global_ssl_ctx;
86 session.conn:starttls(ssl_ctx, true); 86 session.conn:starttls(ssl_ctx);
87 session.secure = false; 87 session.secure = false;
88 return true; 88 return true;
89 end); 89 end);