diff -r 22c96a9ab289 -r fa7f6ff10c67 xmpp/sasl.go --- 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":