Skip to content

Commit 8c65384

Browse files
committed
ssh: document how to unmarshal public keys
Fixes golang/go#21491. Change-Id: I5c720f1f6c6acfa7f4cd50920f65db7e57ba3792 Reviewed-on: https://go-review.googlesource.com/95115 Run-TryBot: Han-Wen Nienhuys <hanwen@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
1 parent beaf6a3 commit 8c65384

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ssh/keys.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ type PublicKey interface {
276276
Type() string
277277

278278
// Marshal returns the serialized key data in SSH wire format,
279-
// with the name prefix.
279+
// with the name prefix. To unmarshal the returned data, use
280+
// the ParsePublicKey function.
280281
Marshal() []byte
281282

282283
// Verify that sig is a signature on the given data using this

0 commit comments

Comments
 (0)