diff -r 4fe926b03827 -r f38b0ee7b1c1 structs.go --- a/structs.go Mon Dec 26 14:36:41 2011 -0700 +++ b/structs.go Mon Dec 26 18:07:14 2011 -0700 @@ -17,14 +17,6 @@ "xml" ) -const ( - // Version of RFC 3920 that we implement. - Version = "1.0" - nsStreams = "urn:ietf:params:xml:ns:xmpp-streams" - nsStream = "http://etherx.jabber.org/streams" - nsTLS = "urn:ietf:params:xml:ns:xmpp-tls" -) - // JID represents an entity that can communicate with other // entities. It looks like node@domain/resource. Node and resource are // sometimes optional. @@ -67,11 +59,12 @@ var _ xml.Marshaler = &errText{} type Features struct { - Starttls starttls + Starttls *starttls Mechanisms mechs } type starttls struct { + XMLName xml.Name required *string }