summaryrefslogtreecommitdiff
path: root/xmpp/routing.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-05-22 21:22:32 +0200
committerxengineering <me@xengineering.eu>2023-05-22 21:22:32 +0200
commitc39b4f6bf147aca788dc02832a985700b6e4eba9 (patch)
treef39fd6d520802ef971fcb51ba841022b760e4ecb /xmpp/routing.go
parentefd5c81ca00136d3a673d99e699f16d050fcfaa6 (diff)
downloadlimox-c39b4f6bf147aca788dc02832a985700b6e4eba9.tar
limox-c39b4f6bf147aca788dc02832a985700b6e4eba9.tar.zst
limox-c39b4f6bf147aca788dc02832a985700b6e4eba9.zip
Act on SASL server response
Diffstat (limited to 'xmpp/routing.go')
-rw-r--r--xmpp/routing.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmpp/routing.go b/xmpp/routing.go
index 48c9763..9199874 100644
--- a/xmpp/routing.go
+++ b/xmpp/routing.go
@@ -65,6 +65,8 @@ func (r *tokenRouter) route(t xml.Token, c *Conn) error {
func routeElement(b []xml.Token, c *Conn) error {
tab := elementRoutingTable{
{xml.Name{"http://etherx.jabber.org/streams", "features"}, streamFeatures},
+ {xml.Name{"urn:ietf:params:xml:ns:xmpp-sasl", "success"}, onSaslSuccess},
+ {xml.Name{"urn:ietf:params:xml:ns:xmpp-sasl", "failure"}, onSaslFailure},
}
switch unwrapped := b[0].(type) {