summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-06-30 13:21:34 +0200
committerxengineering <me@xengineering.eu>2023-06-30 13:21:34 +0200
commitf3aa8bec6e7d91b84a73688191751f9723c008a8 (patch)
tree2142243f2cd07eec012e5797122b41a247d71d0e
parentc87ed02bb55a652b8908c336c3afd5635afdc1a7 (diff)
downloadlimox-f3aa8bec6e7d91b84a73688191751f9723c008a8.tar
limox-f3aa8bec6e7d91b84a73688191751f9723c008a8.tar.zst
limox-f3aa8bec6e7d91b84a73688191751f9723c008a8.zip
Add SASL success handler
-rw-r--r--xmpp/router.go1
-rw-r--r--xmpp/sasl.go3
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) {
+}