aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-10-20 14:04:56 +0200
committerKim Alvefur <zash@zash.se>2022-10-20 14:04:56 +0200
commita46ae8cb89d83b98a5e3f8da1d958905b2cb78ac (patch)
tree3fbee31fc79cb0dd3a92ba31017caa958d4d4064 /util
parentd4f4f76c3c703a323a712119e60eb3dbe053cbbd (diff)
downloadprosody-a46ae8cb89d83b98a5e3f8da1d958905b2cb78ac.tar.gz
prosody-a46ae8cb89d83b98a5e3f8da1d958905b2cb78ac.zip
mod_c2s,mod_s2s: Adapt to XEP-xxxx: Stream Limits Advertisement
Thanks MattJ
Diffstat (limited to 'util')
-rw-r--r--util/x509.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/x509.lua b/util/x509.lua
index 51ca3c96..ae250a55 100644
--- a/util/x509.lua
+++ b/util/x509.lua
@@ -276,8 +276,7 @@ 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);