Mercurial > prosody-hg
comparison util/x509.lua @ 6722:d022cb4486bd
Merge 0.10->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 19 May 2015 09:31:12 +0100 |
| parents | d2beb98ece29 |
| children | 5de6b93d0190 |
comparison
equal
deleted
inserted
replaced
| 6705:c269ab6ab98a | 6722:d022cb4486bd |
|---|---|
| 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 |
