aboutsummaryrefslogtreecommitdiffstats
path: root/util/x509.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-12-21 21:34:07 +0100
committerKim Alvefur <zash@zash.se>2022-12-21 21:34:07 +0100
commit62f32cd01d26e3d1bad0d63a9e418838eb9ea212 (patch)
treeac68619200114e660782808ccbe47dbfb81b9668 /util/x509.lua
parente3d771baf90b7fbc33d56e0ed2558c76f6ad9b24 (diff)
downloadprosody-62f32cd01d26e3d1bad0d63a9e418838eb9ea212.tar.gz
prosody-62f32cd01d26e3d1bad0d63a9e418838eb9ea212.zip
Revert unintentionally committed parts of 12bd40b8e105
Diffstat (limited to 'util/x509.lua')
-rw-r--r--util/x509.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/x509.lua b/util/x509.lua
index ae250a55..51ca3c96 100644
--- a/util/x509.lua
+++ b/util/x509.lua
@@ -276,7 +276,8 @@ local function get_identities(cert) --> map of names to sets of services
return names.data;
end
-local pat = "%-%-%-%-%-BEGIN ([A-Z ]+)%-%-%-%-%-\r?\n([0-9A-Za-z+/=\r\n]*)\r?\n%-%-%-%-%-END %1%-%-%-%-%-";
+local pat = "%-%-%-%-%-BEGIN ([A-Z ]+)%-%-%-%-%-\r?\n"..
+"([0-9A-Za-z+/=\r\n]*)\r?\n%-%-%-%-%-END %1%-%-%-%-%-";
local function pem2der(pem)
local typ, data = pem:match(pat);