1
0
Fork 0

Represented SASL message and TLS handshake value as chardata.

This commit is contained in:
Matt Goodall 2012-07-08 23:01:08 +01:00
parent 01cff4b3ba
commit 5399179d50
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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"`
}