diff options
author | xengineering <me@xengineering.eu> | 2023-06-30 13:21:34 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-06-30 13:21:34 +0200 |
commit | f3aa8bec6e7d91b84a73688191751f9723c008a8 (patch) | |
tree | 2142243f2cd07eec012e5797122b41a247d71d0e | |
parent | c87ed02bb55a652b8908c336c3afd5635afdc1a7 (diff) | |
download | limox-f3aa8bec6e7d91b84a73688191751f9723c008a8.tar limox-f3aa8bec6e7d91b84a73688191751f9723c008a8.tar.zst limox-f3aa8bec6e7d91b84a73688191751f9723c008a8.zip |
Add SASL success handler
-rw-r--r-- | xmpp/router.go | 1 | ||||
-rw-r--r-- | xmpp/sasl.go | 3 |
2 files changed, 4 insertions, 0 deletions
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) { +} |