Home | History | Annotate | Download | only in smtp

Lines Matching refs:username

42 	identity, username, password string
48 // username and password to authenticate to host and act as identity.
49 // Usually identity should be the empty string, to act as username.
54 func PlainAuth(identity, username, password, host string) Auth {
55 return &plainAuth{identity, username, password, host}
74 resp := []byte(a.identity + "\x00" + a.username + "\x00" + a.password)
87 username, secret string
92 // The returned Auth uses the given username and secret to authenticate
94 func CRAMMD5Auth(username, secret string) Auth {
95 return &cramMD5Auth{username, secret}
107 return []byte(fmt.Sprintf("%s %x", a.username, d.Sum(s))), nil