(seed []byte, pub *rsa.PublicKey)
| 267 | } |
| 268 | |
| 269 | func (mc *mysqlConn) sendEncryptedPassword(seed []byte, pub *rsa.PublicKey) error { |
| 270 | enc, err := encryptPassword(mc.cfg.Passwd, seed, pub) |
| 271 | if err != nil { |
| 272 | return err |
| 273 | } |
| 274 | return mc.writeAuthSwitchPacket(enc) |
| 275 | } |
| 276 | |
| 277 | func (mc *mysqlConn) auth(authData []byte, plugin string) ([]byte, error) { |
| 278 | switch plugin { |
no test coverage detected