aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-05-27 15:40:49 +0200
committerKim Alvefur <zash@zash.se>2023-05-27 15:40:49 +0200
commite6f0e0b9d0065fcc94e1c570e48a64b5587a058b (patch)
tree382616406167b4424f54159c052698003d6ce211 /net
parent296710c701edda6697bc9dd537e83bf38dbc9289 (diff)
downloadprosody-e6f0e0b9d0065fcc94e1c570e48a64b5587a058b.tar.gz
prosody-e6f0e0b9d0065fcc94e1c570e48a64b5587a058b.zip
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.
Diffstat (limited to 'net')
-rw-r--r--net/tls_luasec.lua1
1 files changed, 1 insertions, 0 deletions
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;
};