From f3aa8bec6e7d91b84a73688191751f9723c008a8 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 30 Jun 2023 13:21:34 +0200 Subject: Add SASL success handler --- xmpp/router.go | 1 + xmpp/sasl.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/xmpp/router.go b/xmpp/router.go index bd619b4..84256bb 100644 --- a/xmpp/router.go +++ b/xmpp/router.go @@ -23,6 +23,7 @@ type routingTable []struct { func getRoutingTable() routingTable { return routingTable{ {xml.Name{`http://etherx.jabber.org/streams`, `features`}, streamFeaturesHandler}, + {xml.Name{`urn:ietf:params:xml:ns:xmpp-sasl`, `success`}, saslSuccessHandler}, } } diff --git a/xmpp/sasl.go b/xmpp/sasl.go index e460f5e..62c312f 100644 --- a/xmpp/sasl.go +++ b/xmpp/sasl.go @@ -64,3 +64,6 @@ func hasSaslPlain(e []xml.Token) bool { return false } + +func saslSuccessHandler(s *session, e []xml.Token) { +} -- cgit v1.2.3-70-g09d2