Changeset

12486:ee93df086926

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.
author Kim Alvefur <zash@zash.se>
date Wed, 27 Apr 2022 21:34:35 +0200
parents 12485:794f5ec0f347
children 12487:db634db8e069
files net/tls_luasec.lua
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/net/tls_luasec.lua	Wed Apr 27 21:12:25 2022 +0200
+++ b/net/tls_luasec.lua	Wed Apr 27 21:34:35 2022 +0200
@@ -16,10 +16,9 @@
 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 = {};