aboutsummaryrefslogtreecommitdiff
path: root/ssh/client_auth.go
diff options
context:
space:
mode:
authorAdam Langley <agl@golang.org>2012-02-23 10:42:21 -0500
committerAdam Langley <agl@golang.org>2012-02-23 10:42:21 -0500
commitd33bbf2cb3b8574ad57ddba26f03e861c01f69c5 (patch)
treec74823bb20f37958d7aa17d65a95bdb6856fe35d /ssh/client_auth.go
parent63736bd2bfc680f74ba4e026c1cc4fd3ebf113ed (diff)
downloadgo-x-crypto-d33bbf2cb3b8574ad57ddba26f03e861c01f69c5.tar.xz
ssh: use *rsa.PublicKey or *dsa.PublicKey in interfaces.
Everywhere else in the code base, when we have an interface{} which is a stand in for a public key, we use *foo.PublicKey rather than foo.PublicKey. This change makes ssh reflect that. R=dave, r CC=golang-dev https://golang.org/cl/5686067
Diffstat (limited to 'ssh/client_auth.go')
-rw-r--r--ssh/client_auth.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ssh/client_auth.go b/ssh/client_auth.go
index 3a7e9fb..721a21f 100644
--- a/ssh/client_auth.go
+++ b/ssh/client_auth.go
@@ -135,7 +135,7 @@ func ClientAuthPassword(impl ClientPassword) ClientAuth {
// ClientKeyring implements access to a client key ring.
type ClientKeyring interface {
- // Key returns the i'th rsa.Publickey or dsa.Publickey, or nil if
+ // Key returns the i'th *rsa.Publickey or *dsa.Publickey, or nil if
// no key exists at i.
Key(i int) (key interface{}, err error)
@@ -163,7 +163,6 @@ type publickeyAuthMsg struct {
}
func (p *publickeyAuth) auth(session []byte, user string, t *transport, rand io.Reader) (bool, []string, error) {
-
// Authentication is performed in two stages. The first stage sends an
// enquiry to test if each key is acceptable to the remote. The second
// stage attempts to authenticate with the valid keys obtained in the