aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-04 15:56:55 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-04 15:56:55 +0100
commited6bf969af486da915bdb8e1a0226dcc7d13f192 (patch)
treee657254de0e2d0b62b9aee23652906c82e5170c0 /net
parent0b8c96ecdecfb7f71b12b803bb7ebfc72dbe2c3f (diff)
downloadprosody-ed6bf969af486da915bdb8e1a0226dcc7d13f192.tar.gz
prosody-ed6bf969af486da915bdb8e1a0226dcc7d13f192.zip
net.server: Provide a way to get sslctx of a client connection
Diffstat (limited to 'net')
-rw-r--r--net/server.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/server.lua b/net/server.lua
index ce2c74bb..3be846dc 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -339,6 +339,9 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
handler.ssl = function( )
return ssl
end
+ handler.sslctx = function ( )
+ return sslctx
+ end
handler.send = function( _, data, i, j )
return send( socket, data, i, j )
end