mod_s2s_auth_dane/mod_s2s_auth_dane.lua
changeset 1324 853a382c9bd6
parent 1269 69d42d2427f7
child 1325 b21236b6b8d8
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