xmpp/sasl.go
changeset 150 fa7f6ff10c67
parent 147 d7679d991b17
child 153 bbd4166df95d
--- a/xmpp/sasl.go	Sun Sep 15 16:30:55 2013 -0600
+++ b/xmpp/sasl.go	Sun Sep 15 16:41:02 2013 -0600
@@ -13,6 +13,8 @@
 	"strings"
 )
 
+// Server is advertising auth mechanisms it supports. Choose one and
+// respond.
 // BUG(cjyar): Doesn't implement TLS/SASL EXTERNAL.
 func (cl *Client) chooseSasl(fe *Features) {
 	var digestMd5 bool
@@ -30,6 +32,7 @@
 	}
 }
 
+// Server is responding to our auth request.
 func (cl *Client) handleSasl(srv *auth) {
 	switch strings.ToLower(srv.XMLName.Local) {
 	case "challenge":