diff -r 99e03b33b20d -r aa895dfae3f6 xmpp.go --- a/xmpp.go Sun Dec 16 15:24:55 2012 -0700 +++ b/xmpp.go Sun Dec 16 15:54:39 2012 -0700 @@ -8,6 +8,7 @@ import ( "bytes" + "crypto/tls" "encoding/xml" "errors" "fmt" @@ -59,6 +60,9 @@ Start func(*Client) } +// Allows the user to override the TLS configuration. +var TlsConfig tls.Config + // The client in a client-server XMPP connection. type Client struct { // This client's unique ID. It's unique within the context of @@ -269,7 +273,7 @@ f := func(st Stanza) bool { iq, ok := st.(*Iq) if !ok { - Warn.Logf("iq reply not iq; can't start session") + Warn.Log("iq reply not iq; can't start session") ch <- errors.New("bad session start reply") return false }