comparison mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 1368:5724008bbdb1

mod_s2s_auth_dane: Fix typo in debug statement
author Kim Alvefur <zash@zash.se>
date Thu, 20 Mar 2014 15:55:37 +0100
parents 103d685e2153
children e3fe6c749bc3
comparison
equal deleted inserted replaced
1367:103d685e2153 1368:5724008bbdb1
5 -- 5 --
6 -- In your DNS, put 6 -- In your DNS, put
7 -- _xmpp-server.example.com. IN TLSA 3 0 1 <sha256 hash of certificate> 7 -- _xmpp-server.example.com. IN TLSA 3 0 1 <sha256 hash of certificate>
8 -- 8 --
9 -- Known issues: 9 -- Known issues:
10 -- Race condition
11 -- Could be done much cleaner if mod_s2s was using util.async 10 -- Could be done much cleaner if mod_s2s was using util.async
12 -- 11 --
13 -- TODO Things to test/handle: 12 -- TODO Things to test/handle:
14 -- Negative or bogus answers 13 -- Negative or bogus answers
15 -- No encryption offered 14 -- No encryption offered
110 -- dane_lookup(origin, origin.from_host); 109 -- dane_lookup(origin, origin.from_host);
111 local host_session = event.origin; 110 local host_session = event.origin;
112 host_session.log("debug", "Pausing connection until DANE lookup is completed"); 111 host_session.log("debug", "Pausing connection until DANE lookup is completed");
113 host_session.conn:pause() 112 host_session.conn:pause()
114 local function resume() 113 local function resume()
115 module:log("eebug", "Resuming connection"); 114 module:log("debug", "Resuming connection");
116 host_session.conn:resume() 115 host_session.conn:resume()
117 end 116 end
118 if not dane_lookup(host_session, resume) then 117 if not dane_lookup(host_session, resume) then
119 resume(); 118 resume();
120 end 119 end