servers/jabberd14.lua

Mon, 04 Oct 2010 00:22:26 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 04 Oct 2010 00:22:26 +0100
changeset 8
73822e1d2e35
parent 0
ba1cc6ad649d
child 10
1ccc729780b7
permissions
-rw-r--r--

servers/jabberd14.lua: Update fingerprint for jabberd14 1.6.x, though many servers which report as jabberd14 1.6.x actually return a jabberd2 fingerprint. I'm not sure why, yet.

-- The jabberd14/jabberd2 split is a complete mess. There are
-- servers that report as jabberd14 that return the same fingerprint
-- as jabberd2 servers. A jabberd14 1.6.1.1 server on Debian was
-- more similar to jabberd14 1.4.x, so I am assuming it to be the
-- correct one, even though I can't find another one like it...

function testers.jabberd14()
	if test(q_invalid_xml, literal ">Invalid XML<") then
		server_name = "jabberd14";
		
		if test(q_invalid_xml, "^<%?xml")
		and test(q_empty_message_tag, literal ">Did not specify a valid to argument<") then
			server_min_version = "1.6.0";
			server_comment "Likely Debian's package, other 1.6.x jabberd's report as jabberd2";
		elseif test(q_invalid_xml, "^<stream:error>") then
			server_max_version = "1.4.x";
		end
	end
end

mercurial