diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-05-19 09:31:12 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-05-19 09:31:12 +0100 |
commit | ebe83d27d3179fa5d3c1452a8633a49d85a94f60 (patch) | |
tree | 6225faf7bc524edf57e2118bc8633e07d2b28333 /util/x509.lua | |
parent | 879862c536a5fba488307eb9e8a2f4f6523dbf09 (diff) | |
parent | 79534953279caa15362184c30db97c354e2d7364 (diff) | |
download | prosody-ebe83d27d3179fa5d3c1452a8633a49d85a94f60.tar.gz prosody-ebe83d27d3179fa5d3c1452a8633a49d85a94f60.zip |
Merge 0.10->trunk
Diffstat (limited to 'util/x509.lua')
-rw-r--r-- | util/x509.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/x509.lua b/util/x509.lua index 5e1b49e5..bf8d3906 100644 --- 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]; |