From c90b2eca9da711e26a608720f2c7d80fce4e26b1 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 27 Apr 2022 21:34:35 +0200 Subject: 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. --- net/tls_luasec.lua | 5 ++--- 1 file 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 = {}; -- cgit v1.2.3