mirror of
https://github.com/golang/go
synced 2024-11-07 00:26:18 -07:00
net/smtp: match actual behavior for Auth.Start
Looking at history, it appears to never have worked as documented. Fixes #48759 Change-Id: I066307c28e3ed1875c1c4049bade62e2818dd400 Reviewed-on: https://go-review.googlesource.com/c/go/+/383998 Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
0b7e586e48
commit
6749dd40b3
@ -16,8 +16,7 @@ type Auth interface {
|
|||||||
// Start begins an authentication with a server.
|
// Start begins an authentication with a server.
|
||||||
// It returns the name of the authentication protocol
|
// It returns the name of the authentication protocol
|
||||||
// and optionally data to include in the initial AUTH message
|
// and optionally data to include in the initial AUTH message
|
||||||
// sent to the server. It can return proto == "" to indicate
|
// sent to the server.
|
||||||
// that the authentication should be skipped.
|
|
||||||
// If it returns a non-nil error, the SMTP client aborts
|
// If it returns a non-nil error, the SMTP client aborts
|
||||||
// the authentication attempt and closes the connection.
|
// the authentication attempt and closes the connection.
|
||||||
Start(server *ServerInfo) (proto string, toServer []byte, err error)
|
Start(server *ServerInfo) (proto string, toServer []byte, err error)
|
||||||
|
Loading…
Reference in New Issue
Block a user