summaryrefslogtreecommitdiff
path: root/xmpp/sasl.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-06-30 13:22:15 +0200
committerxengineering <me@xengineering.eu>2023-06-30 13:22:15 +0200
commit04f24e0dade8caf029cb78d3281b3587a8362cbe (patch)
treee1ce4b1c0cce0b6ad0ce2cfc23e3a7e38ec9e469 /xmpp/sasl.go
parentf3aa8bec6e7d91b84a73688191751f9723c008a8 (diff)
downloadlimox-04f24e0dade8caf029cb78d3281b3587a8362cbe.tar
limox-04f24e0dade8caf029cb78d3281b3587a8362cbe.tar.zst
limox-04f24e0dade8caf029cb78d3281b3587a8362cbe.zip
Rework and apply stream nesting on SASL success
If SASL authentication is successful a new stream has to be opened by the client. This is implemented with this commit.
Diffstat (limited to 'xmpp/sasl.go')
-rw-r--r--xmpp/sasl.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmpp/sasl.go b/xmpp/sasl.go
index 62c312f..23e8f3f 100644
--- a/xmpp/sasl.go
+++ b/xmpp/sasl.go
@@ -66,4 +66,5 @@ func hasSaslPlain(e []xml.Token) bool {
}
func saslSuccessHandler(s *session, e []xml.Token) {
+ runStreamPair(s)
}