From 76c7c60c071b310d16774257b879b9d476db77f3 Mon Sep 17 00:00:00 2001 From: Artyom Pervukhin Date: Sun, 6 Aug 2017 11:36:27 +0300 Subject: [PATCH] ssh: fix documentation on ServerConfig.PublicKeyCallback Fix leftovers from the old days to match today's method signature. Fixes golang/go#21325 Change-Id: Iac5d49bc7cf9e80d07e21148b5e6e1b9bbb59d74 Reviewed-on: https://go-review.googlesource.com/53472 Reviewed-by: Han-Wen Nienhuys Run-TryBot: Han-Wen Nienhuys TryBot-Result: Gobot Gobot --- ssh/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh/server.go b/ssh/server.go index b6f4cc8..8a78b7c 100644 --- a/ssh/server.go +++ b/ssh/server.go @@ -67,7 +67,7 @@ type ServerConfig struct { PasswordCallback func(conn ConnMetadata, password []byte) (*Permissions, error) // PublicKeyCallback, if non-nil, is called when a client - // offers a public key for authentication. It must return true + // offers a public key for authentication. It must return a nil error // if the given public key can be used to authenticate the // given user. For example, see CertChecker.Authenticate. A // call to this function does not guarantee that the key