diff options
author | Kim Alvefur <zash@zash.se> | 2022-10-20 14:04:56 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-10-20 14:04:56 +0200 |
commit | a46ae8cb89d83b98a5e3f8da1d958905b2cb78ac (patch) | |
tree | 3fbee31fc79cb0dd3a92ba31017caa958d4d4064 /util | |
parent | d4f4f76c3c703a323a712119e60eb3dbe053cbbd (diff) | |
download | prosody-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.lua | 3 |
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); |