From e6f0e0b9d0065fcc94e1c570e48a64b5587a058b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 27 May 2023 15:40:49 +0200 Subject: net.tls_luasec: Expose method for loading a certificate Further isolates LuaSec from Prosody core, with the ultimate goal of allowing LuaSec to be replaced more easily. --- net/tls_luasec.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'net') diff --git a/net/tls_luasec.lua b/net/tls_luasec.lua index 917669b8..3af2fc6b 100644 --- a/net/tls_luasec.lua +++ b/net/tls_luasec.lua @@ -110,4 +110,5 @@ local luasec_has = ssl.config or { return { features = luasec_has; new_context = new_context, + load_certificate = ssl.loadcertificate; }; -- cgit v1.2.3