Mercurial > prosody-hg
comparison net/server_event.lua @ 2119:9fd2782d63f6
net.server_event: Add set_sslctx() method to connections
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 22 Nov 2009 03:53:44 +0000 |
| parents | 2e2e1b46cfe2 |
| children | 93eae69fc121 |
comparison
equal
deleted
inserted
replaced
| 2118:2e2e1b46cfe2 | 2119:9fd2782d63f6 |
|---|---|
| 368 | 368 |
| 369 function interface_mt:address() | 369 function interface_mt:address() |
| 370 return self.addr | 370 return self.addr |
| 371 end | 371 end |
| 372 | 372 |
| 373 | 373 function interface_mt:set_sslctx(sslctx) |
| 374 self._sslctx = sslctx; | |
| 375 end | |
| 374 | 376 |
| 375 function interface_mt:starttls() | 377 function interface_mt:starttls() |
| 376 debug( "try to start ssl at client id:", self.id ) | 378 debug( "try to start ssl at client id:", self.id ) |
| 377 local err | 379 local err |
| 378 if not self._sslctx then -- no ssl available | 380 if not self._sslctx then -- no ssl available |
