diff options
author | Kim Alvefur <zash@zash.se> | 2022-04-27 21:34:35 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-04-27 21:34:35 +0200 |
commit | c90b2eca9da711e26a608720f2c7d80fce4e26b1 (patch) | |
tree | df13426930f662f2b6eefe722055e0ad251f7bdb /net | |
parent | edb490504d310913a88941a1ac3a1ebdcff0aa32 (diff) | |
download | prosody-c90b2eca9da711e26a608720f2c7d80fce4e26b1.tar.gz prosody-c90b2eca9da711e26a608720f2c7d80fce4e26b1.zip |
net.tls_luasec: Harden dependency on LuaSec
We at some point decided that it was okay to have a hard dependency the
TLS library. Especially here since this module is meant to contain all
LuaSec specifics.
Diffstat (limited to 'net')
-rw-r--r-- | net/tls_luasec.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/tls_luasec.lua b/net/tls_luasec.lua index 680b455e..2bedb5ab 100644 --- a/net/tls_luasec.lua +++ b/net/tls_luasec.lua @@ -16,10 +16,9 @@ commonly used things (such as SNI contexts). Eventually, network backends which do not rely on LuaSocket+LuaSec should be able to provide *this* API instead of having to mimic LuaSec. ]] -local softreq = require"util.dependencies".softreq; -local ssl = softreq"ssl"; +local ssl = require "ssl"; local ssl_newcontext = ssl.newcontext; -local ssl_context = ssl.context or softreq"ssl.context"; +local ssl_context = ssl.context or require "ssl.context"; local io_open = io.open; local context_api = {}; |