mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.x509: Tell LuaSec we want UTF-8 data
This commit is contained in:
parent
938380cacc
commit
bac4a10b34
1 changed files with 3 additions and 0 deletions
|
@ -148,6 +148,9 @@ local function compare_srvname(host, service, asserted_names)
|
|||
end
|
||||
|
||||
function verify_identity(host, service, cert)
|
||||
if cert.setencode then
|
||||
cert:setencode("utf8");
|
||||
end
|
||||
local ext = cert:extensions()
|
||||
if ext[oid_subjectaltname] then
|
||||
local sans = ext[oid_subjectaltname];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue