Software /
code /
prosody
Diff
util/x509.lua @ 12808:12bd40b8e105
mod_c2s,mod_s2s: Adapt to XEP-xxxx: Stream Limits Advertisement
Thanks MattJ
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 20 Oct 2022 14:04:56 +0200 |
parent | 12604:bd9e006a7a74 |
child | 12812:b2d422b88cd6 |
line wrap: on
line diff
--- a/util/x509.lua Tue Mar 16 18:30:54 2021 +0100 +++ b/util/x509.lua Thu Oct 20 14:04:56 2022 +0200 @@ -276,8 +276,7 @@ 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);