stream.go
changeset 59 be6815a9653a
parent 57 e6cb3f049137
child 61 16513974d273
equal deleted inserted replaced
58:c0e8778bdb80 59:be6815a9653a
   402 
   402 
   403 	// Signal that we're going back to the read loop.
   403 	// Signal that we're going back to the read loop.
   404 	cl.socketSync.Done()
   404 	cl.socketSync.Done()
   405 }
   405 }
   406 
   406 
   407 // BUG(cjyar) Doesn't implement TLS/SASL EXTERNAL.
   407 // BUG(cjyar): Doesn't implement TLS/SASL EXTERNAL.
   408 func (cl *Client) chooseSasl(fe *Features) {
   408 func (cl *Client) chooseSasl(fe *Features) {
   409 	var digestMd5 bool
   409 	var digestMd5 bool
   410 	for _, m := range(fe.Mechanisms.Mechanism) {
   410 	for _, m := range(fe.Mechanisms.Mechanism) {
   411 		switch strings.ToLower(m) {
   411 		switch strings.ToLower(m) {
   412 		case "digest-md5":
   412 		case "digest-md5":