diff net/tls_luasec.lua @ 13116:58e793288d9c

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.
author Kim Alvefur <zash@zash.se>
date Sat, 27 May 2023 15:40:49 +0200
parents 749376d75b40
children 61da4491eebc
line wrap: on
line diff
--- a/net/tls_luasec.lua	Sat May 27 15:39:26 2023 +0200
+++ b/net/tls_luasec.lua	Sat May 27 15:40:49 2023 +0200
@@ -110,4 +110,5 @@
 return {
 	features = luasec_has;
 	new_context = new_context,
+	load_certificate = ssl.loadcertificate;
 };