projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92ee50c
)
util.x509: Tell LuaSec we want UTF-8 data
author
Kim Alvefur
<zash@zash.se>
Mon, 18 May 2015 19:32:05 +0000
(21:32 +0200)
committer
Kim Alvefur
<zash@zash.se>
Mon, 18 May 2015 19:32:05 +0000
(21:32 +0200)
util/x509.lua
patch
|
blob
|
history
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];