Skip to content

Commit 5119cf5

Browse files
committed
ssh: clarify how to parse out Certificates
Fixes golang/go#22046 Change-Id: I9a9aff37ba0fd0ca1f5fa1a212c66b812f6b9f70 Reviewed-on: https://go-review.googlesource.com/88895 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent dea6ea3 commit 5119cf5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ssh/certs.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ type Signature struct {
4444
const CertTimeInfinity = 1<<64 - 1
4545

4646
// An Certificate represents an OpenSSH certificate as defined in
47-
// [PROTOCOL.certkeys]?rev=1.8.
47+
// [PROTOCOL.certkeys]?rev=1.8. The Certificate type implements the
48+
// PublicKey interface, so it can be unmarshaled using
49+
// ParsePublicKey.
4850
type Certificate struct {
4951
Nonce []byte
5052
Key PublicKey

0 commit comments

Comments
 (0)