Skip to content

Commit

Permalink
Include FAST mechanisms in SSDP hash
Browse files Browse the repository at this point in the history
This will probably added to the SSDP XEP, see processone/ejabberd#4331 (comment)
  • Loading branch information
mdosch committed Dec 21, 2024
1 parent eb3b1a2 commit d84a1f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions xmpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,15 @@ func (c *Client) init(o *Options) error {
dgProtect = dgProtect + "," + mech
}
}
if f.Authentication.Inline.Fast.Mechanism != nil {
for _, mech := range f.Authentication.Inline.Fast.Mechanism {
if dgProtect == "" {
dgProtect = mech
} else {
dgProtect = dgProtect + "," + mech
}
}
}
slices.Sort(cbsSlice)
for i, cb := range cbsSlice {
if i == 0 {
Expand Down

0 comments on commit d84a1f5

Please sign in to comment.