forked from jshiffer/go-xmpp
Merge pull request #181 from mdosch/scram-improvement
Improve RFC5802 compatibility.
This commit is contained in:
commit
d6e9a15f29
4
xmpp.go
4
xmpp.go
@ -595,8 +595,8 @@ func (c *Client) init(o *Options) error {
|
||||
return errors.New("SCRAM: downgrade protection hash mismatch")
|
||||
}
|
||||
dgh.Reset()
|
||||
default:
|
||||
return errors.New("unexpected content in SCRAM challenge")
|
||||
case strings.HasPrefix(serverReply, "m="):
|
||||
return errors.New("SCRAM: server sent reserved 'm' attribute.")
|
||||
}
|
||||
}
|
||||
if scramPlus {
|
||||
|
Loading…
Reference in New Issue
Block a user