comparison mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 1324:853a382c9bd6

mod_turncredentials: Advertise the XEP-0215 feature (thanks Gryffus)
author Kim Alvefur <zash@zash.se>
date Fri, 28 Feb 2014 15:36:06 +0100
parents 69d42d2427f7
children b21236b6b8d8
comparison
equal deleted inserted replaced
1323:c84ff82658cb 1324:853a382c9bd6
23 end 23 end
24 24
25 -- TODO Things to test/handle: 25 -- TODO Things to test/handle:
26 -- Negative or bogus answers 26 -- Negative or bogus answers
27 -- No SRV records 27 -- No SRV records
28 -- No encryption offered
28 29
29 function s2sout.try_connect(host_session, connect_host, connect_port, err) 30 function s2sout.try_connect(host_session, connect_host, connect_port, err)
30 local srv_hosts = host_session.srv_hosts; 31 local srv_hosts = host_session.srv_hosts;
31 local srv_choice = host_session.srv_choice; 32 local srv_choice = host_session.srv_choice;
32 if srv_hosts and srv_hosts.answer.secure and not srv_hosts[srv_choice].dane then 33 if srv_hosts and srv_hosts.answer.secure and not srv_hosts[srv_choice].dane then