projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util.x509: Tell LuaSec we want UTF-8 data
[prosody.git]
/
util
/
x509.lua
diff --git
a/util/x509.lua
b/util/x509.lua
index 5e1b49e501d3945fcce38593227b62649703d531..bf8d390661da35459434b16cee2b063b7849d8eb 100644
(file)
--- a/
util/x509.lua
+++ b/
util/x509.lua
@@
-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];