]> Cypherpunks repositories - gostls13.git/commit
net/smtp: allow PLAIN auth when advertised
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 3 Apr 2013 17:52:20 +0000 (10:52 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 3 Apr 2013 17:52:20 +0000 (10:52 -0700)
commitca24f9ec00c65f8e75e38ad33d1b0b3bb287e2a3
tree9fc936c87cffefb20f3c0aeb7ab7b8aeacd4f007
parent3c0a5b8636409ca69f6afa8309e6cbe299a5af1d
net/smtp: allow PLAIN auth when advertised

The smtp package originally allowed PLAIN whenever, but then
the TLS check was added for paranoia, but it's too paranoid:
it prevents using PLAIN auth even from localhost to localhost
when the server advertises PLAIN support.

This CL also permits the client to send PLAIN if the server
advertises it.

Fixes #5184

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/8279043
src/pkg/net/smtp/auth.go
src/pkg/net/smtp/smtp_test.go