20 type = "valid" |
20 type = "valid" |
21 else |
21 else |
22 type = "invalid" |
22 type = "invalid" |
23 log("warn", "Asked to verify a dialback key that was incorrect. An imposter is claiming to be %s?", attr.to); |
23 log("warn", "Asked to verify a dialback key that was incorrect. An imposter is claiming to be %s?", attr.to); |
24 end |
24 end |
|
25 log("debug", "verifyied dialback key... it is %s", type); |
25 origin.sends2s(format("<db:verify from='%s' to='%s' id='%s' type='%s'>%s</db:verify>", attr.to, attr.from, attr.id, type, stanza[1])); |
26 origin.sends2s(format("<db:verify from='%s' to='%s' id='%s' type='%s'>%s</db:verify>", attr.to, attr.from, attr.id, type, stanza[1])); |
26 end); |
27 end); |
27 |
28 |
28 add_handler("s2sin_unauthed", "result", xmlns_dialback, |
29 add_handler("s2sin_unauthed", "result", xmlns_dialback, |
29 function (origin, stanza) |
30 function (origin, stanza) |