PublicKey is a wrapper around gossh.PublicKey to also store the comment. Note when using that pk.Marshal() handles the wire format, not the authorized keys format.
| 11 | // Note when using that pk.Marshal() handles the wire format, not the |
| 12 | // authorized keys format. |
| 13 | type PublicKey struct { |
| 14 | ssh.PublicKey |
| 15 | |
| 16 | Comment string |
| 17 | } |
| 18 | |
| 19 | // ParsePublicKey will return a PublicKey from the given data. |
| 20 | func ParsePublicKey(data []byte) (*PublicKey, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected