mirror of
https://github.com/FluuxIO/go-xmpp
synced 2024-11-03 15:40:13 +00:00
23 lines
437 B
Go
23 lines
437 B
Go
package xmpp // import "fluux.io/xmpp"
|
|
|
|
import (
|
|
"crypto/tls"
|
|
"encoding/xml"
|
|
)
|
|
|
|
var DefaultTlsConfig tls.Config
|
|
|
|
// XMPP Packet Parsing
|
|
type tlsStartTLS struct {
|
|
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:xmpp-tls starttls"`
|
|
Required bool
|
|
}
|
|
|
|
type tlsProceed struct {
|
|
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:xmpp-tls proceed"`
|
|
}
|
|
|
|
type tlsFailure struct {
|
|
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:xmpp-tls failure"`
|
|
}
|