aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_tls.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-20 01:33:25 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-20 01:33:25 +0000
commit5c7ec634b1765f8edcc8b59aff2b2b899180dc65 (patch)
tree07dbd8f7cafdc380476d8e6dd0bc478775809800 /plugins/mod_tls.lua
parent6a333d94d6779850451ca74249906ebf53c5f369 (diff)
downloadprosody-5c7ec634b1765f8edcc8b59aff2b2b899180dc65.tar.gz
prosody-5c7ec634b1765f8edcc8b59aff2b2b899180dc65.zip
Use a stanza for c2s stream features instead of an array of strings. Removes a FIXME.
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r--plugins/mod_tls.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index b5ca5015..cc46d556 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -24,9 +24,10 @@ add_handler("c2s_unauthed", "starttls", xmlns_starttls,
end
end);
+local starttls_attr = { xmlns = xmlns_starttls };
add_event_hook("stream-features",
function (session, features)
if session.conn.starttls then
- t_insert(features, "<starttls xmlns='"..xmlns_starttls.."'/>");
+ features:tag("starttls", starttls_attr):up();
end
end);