mod_tls: Mark session as not secure before negotiating TLS
authorMatthew Wild <mwild1@gmail.com>
Mon, 5 Oct 2009 13:51:53 +0000 (14:51 +0100)
committerMatthew Wild <mwild1@gmail.com>
Mon, 5 Oct 2009 13:51:53 +0000 (14:51 +0100)
plugins/mod_tls.lua

index 7fb9bb817c68f9b42a537cf723cbf9d9b0c6aee1..cd4f3acf9749ee6345ef2e82ac01a1dfce49519e 100644 (file)
@@ -34,6 +34,7 @@ module:add_handler("s2sin_unauthed", "starttls", xmlns_starttls,
                                session:reset_stream();
                                session.conn.starttls();
                                session.log("info", "TLS negotiation started for incoming s2s...");
+                               session.secure = false;
                        else
                                -- FIXME: What reply?
                                session.log("warn", "Attempt to start TLS, but TLS is not available on this s2s connection");