Skip to content

Commit

Permalink
auth.go gofmt -s
Browse files Browse the repository at this point in the history
  • Loading branch information
xhit committed Sep 27, 2019
1 parent 80814f2 commit 9eb4812
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func PlainAuth(identity, username, password, host string) Auth {
return &plainAuth{identity, username, password, host}
}


func (a *plainAuth) Start(server *ServerInfo) (string, []byte, error) {
// Must have TLS, or else localhost server. Unencrypted connection is permitted here too but is not recommended
// Note: If TLS is not true, then we can't trust ANYTHING in ServerInfo.
Expand All @@ -72,4 +71,4 @@ func (a *plainAuth) Next(fromServer []byte, more bool) ([]byte, error) {
return nil, errors.New("unexpected server challenge")
}
return nil, nil
}
}

0 comments on commit 9eb4812

Please sign in to comment.