Mercurial > prosody-hg
comparison util/x509.lua @ 6708:d2beb98ece29
util.x509: Tell LuaSec we want UTF-8 data
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 18 May 2015 21:32:05 +0200 |
| parents | 8fb54ec34741 |
| children | 5de6b93d0190 |
comparison
equal
deleted
inserted
replaced
| 6707:06cdd4afaaf9 | 6708:d2beb98ece29 |
|---|---|
| 146 | 146 |
| 147 return false | 147 return false |
| 148 end | 148 end |
| 149 | 149 |
| 150 function verify_identity(host, service, cert) | 150 function verify_identity(host, service, cert) |
| 151 if cert.setencode then | |
| 152 cert:setencode("utf8"); | |
| 153 end | |
| 151 local ext = cert:extensions() | 154 local ext = cert:extensions() |
| 152 if ext[oid_subjectaltname] then | 155 if ext[oid_subjectaltname] then |
| 153 local sans = ext[oid_subjectaltname]; | 156 local sans = ext[oid_subjectaltname]; |
| 154 | 157 |
| 155 -- Per [TLS-CERTS] 6.3, 6.4.4, "a client MUST NOT seek a match for a | 158 -- Per [TLS-CERTS] 6.3, 6.4.4, "a client MUST NOT seek a match for a |
