aboutsummaryrefslogtreecommitdiff
path: root/ssh/client_auth.go
diff options
context:
space:
mode:
authorAdam Langley <agl@golang.org>2013-06-10 10:57:00 -0400
committerAdam Langley <agl@golang.org>2013-06-10 10:57:00 -0400
commitaa0f5b40812c405df7480c8a69e7f0160363a94b (patch)
treeeabbef7eac424dd18bf869a7e4b753a83edc5b8c /ssh/client_auth.go
parenteca6c1626e1a5b651a7a131cdb6b435930f64498 (diff)
downloadgo-x-crypto-aa0f5b40812c405df7480c8a69e7f0160363a94b.tar.xz
go.crypto: revert 7f5a59ff6b43.
This change reverts https://golang.org/cl/10113043/ because some folks are stuck on 1.0 till 1.1.1 comes out. R=golang-dev CC=golang-dev https://golang.org/cl/10151043
Diffstat (limited to 'ssh/client_auth.go')
-rw-r--r--ssh/client_auth.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssh/client_auth.go b/ssh/client_auth.go
index 53c7b11..ebb74a2 100644
--- a/ssh/client_auth.go
+++ b/ssh/client_auth.go
@@ -286,6 +286,7 @@ func (p *publickeyAuth) confirmKeyAck(key interface{}, t *transport) (bool, erro
return false, UnexpectedMessageError{msgUserAuthSuccess, packet[0]}
}
}
+ panic("unreachable")
}
func (p *publickeyAuth) method() string {
@@ -324,6 +325,7 @@ func handleAuthResponse(t *transport) (bool, []string, error) {
return false, nil, UnexpectedMessageError{msgUserAuthSuccess, packet[0]}
}
}
+ panic("unreachable")
}
// ClientAuthKeyring returns a ClientAuth using public key authentication via