util/x509.lua
changeset 5845 c48f717c2fd6
parent 4825 5fdc36bd866c
child 6152 fbab74c28e31
equal deleted inserted replaced
5844:4f545674b0bc 5845:c48f717c2fd6
   159 		-- SRV-ID, URI-ID, or any application-specific identifier types"
   159 		-- SRV-ID, URI-ID, or any application-specific identifier types"
   160 		local had_supported_altnames = false
   160 		local had_supported_altnames = false
   161 
   161 
   162 		if sans[oid_xmppaddr] then
   162 		if sans[oid_xmppaddr] then
   163 			had_supported_altnames = true
   163 			had_supported_altnames = true
   164 			if compare_xmppaddr(host, sans[oid_xmppaddr]) then return true end
   164 			if service == "_xmpp-client" or service == "_xmpp-server" then
       
   165 				if compare_xmppaddr(host, sans[oid_xmppaddr]) then return true end
       
   166 			end
   165 		end
   167 		end
   166 
   168 
   167 		if sans[oid_dnssrv] then
   169 		if sans[oid_dnssrv] then
   168 			had_supported_altnames = true
   170 			had_supported_altnames = true
   169 			-- Only check srvNames if the caller specified a service
   171 			-- Only check srvNames if the caller specified a service