mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-27 12:52:02 -08:00
5eae7f4ef7
The URL will be more permanent as this is a place we dedicate as short URL for our go projects.
23 lines
437 B
Go
23 lines
437 B
Go
package xmpp // import "gosrc.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"`
|
|
}
|