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")
|
return errors.New("SCRAM: downgrade protection hash mismatch")
|
||||||
}
|
}
|
||||||
dgh.Reset()
|
dgh.Reset()
|
||||||
default:
|
case strings.HasPrefix(serverReply, "m="):
|
||||||
return errors.New("unexpected content in SCRAM challenge")
|
return errors.New("SCRAM: server sent reserved 'm' attribute.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if scramPlus {
|
if scramPlus {
|
||||||
|
Loading…
Reference in New Issue
Block a user