Diff

util/x509.lua @ 6054:7a5ddbaf758d

Merge 0.9->0.10
author Matthew Wild <mwild1@gmail.com>
date Wed, 02 Apr 2014 17:41:38 +0100
parent 5845:c48f717c2fd6
child 6152:fbab74c28e31
line wrap: on
line diff
--- a/util/x509.lua	Wed Apr 02 14:31:19 2014 +0100
+++ b/util/x509.lua	Wed Apr 02 17:41:38 2014 +0100
@@ -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