Represented SASL message and TLS handshake value as chardata.
This commit is contained in:
parent
01cff4b3ba
commit
5399179d50
|
|
@ -153,7 +153,7 @@ func authenticatePlain(stream *Stream, user, password string) error {
|
|||
type saslAuth struct {
|
||||
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:xmpp-sasl auth"`
|
||||
Mechanism string `xml:"mechanism,attr"`
|
||||
Message string `xml:",innerxml"`
|
||||
Message string `xml:",chardata"`
|
||||
}
|
||||
|
||||
func bindResource(stream *Stream, jid JID) (JID, error) {
|
||||
|
|
|
|||
|
|
@ -83,5 +83,5 @@ func handshake(stream *Stream, streamId, secret string) error {
|
|||
|
||||
type saslHandshake struct {
|
||||
XMLName xml.Name `xml:"handshake"`
|
||||
Value string `xml:",innerxml"`
|
||||
Value string `xml:",chardata"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue