xmpp.go
changeset 105 aa895dfae3f6
parent 102 872e936f9f3f
child 106 ffb9d27fea79
--- 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
 		}