Software /
code /
prosody
Changeset
5845:c48f717c2fd6
util.x509: Only compare identity with oid-on-xmppAddr for XMPP services
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 26 Sep 2013 16:55:39 +0200 |
parents | 5844:4f545674b0bc |
children | 5846:b8c7656481ac |
files | util/x509.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/x509.lua Sun Sep 22 04:29:27 2013 +0200 +++ b/util/x509.lua Thu Sep 26 16:55:39 2013 +0200 @@ -161,7 +161,9 @@ if sans[oid_xmppaddr] then had_supported_altnames = true - if compare_xmppaddr(host, sans[oid_xmppaddr]) then return true end + if service == "_xmpp-client" or service == "_xmpp-server" then + if compare_xmppaddr(host, sans[oid_xmppaddr]) then return true end + end end if sans[oid_dnssrv] then