2018-02-07 19:32:11 +01:00
|
|
|
package messages
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/xml"
|
|
|
|
)
|
|
|
|
|
2018-02-13 20:05:18 +01:00
|
|
|
// RFC 6120 - A.1 Stream Namespace
|
2018-02-07 19:32:11 +01:00
|
|
|
type StreamFeatures struct {
|
|
|
|
XMLName xml.Name `xml:"http://etherx.jabber.org/streams features"`
|
|
|
|
StartTLS *TLSStartTLS
|
|
|
|
Mechanisms SASLMechanisms
|
2018-02-11 22:03:58 +01:00
|
|
|
Bind *Bind
|
2018-02-07 19:32:11 +01:00
|
|
|
Session bool
|
|
|
|
}
|
|
|
|
|
2018-02-13 20:05:18 +01:00
|
|
|
// RFC 6120 - A.3 StartTLS Namespace
|
2018-02-07 19:32:11 +01:00
|
|
|
type TLSStartTLS struct {
|
|
|
|
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:xmpp-tls starttls"`
|
|
|
|
Required *string `xml:"required"`
|
|
|
|
}
|
|
|
|
|
2018-02-13 20:05:18 +01:00
|
|
|
// RFC 6120 - A.3 StartTLS Namespace
|
2018-02-07 19:32:11 +01:00
|
|
|
type TLSProceed struct {
|
|
|
|
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:xmpp-tls proceed"`
|
|
|
|
}
|
|
|
|
|
2018-02-13 20:05:18 +01:00
|
|
|
// RFC 6120 - A.3 StartTLS Namespace
|
|
|
|
type TLSFailure struct {
|
|
|
|
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:xmpp-tls failure"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// RFC 6120 A.7 Resource binding namespace
|
2018-02-07 19:32:11 +01:00
|
|
|
type Bind struct {
|
2018-02-13 20:05:18 +01:00
|
|
|
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:xmpp-bind bind"`
|
|
|
|
Resource string `xml:"resource"`
|
|
|
|
JID *JID `xml:"jid"`
|
2018-02-07 19:32:11 +01:00
|
|
|
}
|