Mercurial > prosody-modules
comparison mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 1325:b21236b6b8d8
Backed out changeset 853a382c9bd6
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 28 Feb 2014 15:37:55 +0100 |
| parents | 853a382c9bd6 |
| children | b93f45c42044 |
comparison
equal
deleted
inserted
replaced
| 1324:853a382c9bd6 | 1325:b21236b6b8d8 |
|---|---|
| 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 | |
| 29 | 28 |
| 30 function s2sout.try_connect(host_session, connect_host, connect_port, err) | 29 function s2sout.try_connect(host_session, connect_host, connect_port, err) |
| 31 local srv_hosts = host_session.srv_hosts; | 30 local srv_hosts = host_session.srv_hosts; |
| 32 local srv_choice = host_session.srv_choice; | 31 local srv_choice = host_session.srv_choice; |
| 33 if srv_hosts and srv_hosts.answer.secure and not srv_hosts[srv_choice].dane then | 32 if srv_hosts and srv_hosts.answer.secure and not srv_hosts[srv_choice].dane then |
