aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-22 03:53:44 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-22 03:53:44 +0000
commite6249e1a9e5f4e1cf2cc36d46402d4a529982cd0 (patch)
treede4e89d446a881e4a8b10101c855c8fe8aa08382
parent9ad7e92bf95639ba57df4811b44ba714c6f2402f (diff)
downloadprosody-e6249e1a9e5f4e1cf2cc36d46402d4a529982cd0.tar.gz
prosody-e6249e1a9e5f4e1cf2cc36d46402d4a529982cd0.zip
net.server_event: Add set_sslctx() method to connections
-rw-r--r--net/server_event.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 1a77953d..41c5a02b 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -370,7 +370,9 @@ do
return self.addr
end
-
+ function interface_mt:set_sslctx(sslctx)
+ self._sslctx = sslctx;
+ end
function interface_mt:starttls()
debug( "try to start ssl at client id:", self.id )