From 5399179d50688ef80106610a332d6e56c239890e Mon Sep 17 00:00:00 2001 From: Matt Goodall Date: Sun, 8 Jul 2012 23:01:08 +0100 Subject: [PATCH] Represented SASL message and TLS handshake value as chardata. --- src/xmpp/client.go | 2 +- src/xmpp/component.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xmpp/client.go b/src/xmpp/client.go index ed5277c..29c3fb6 100644 --- a/src/xmpp/client.go +++ b/src/xmpp/client.go @@ -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) { diff --git a/src/xmpp/component.go b/src/xmpp/component.go index 8ac3554..8470aa3 100644 --- a/src/xmpp/component.go +++ b/src/xmpp/component.go @@ -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"` }