diff options
| author | Jonathan Pittman <jmpittman@google.com> | 2012-12-16 10:47:10 -0500 |
|---|---|---|
| committer | Adam Langley <agl@golang.org> | 2012-12-16 10:47:10 -0500 |
| commit | d95b28330da59cfd5b511cea8d98ce3379610013 (patch) | |
| tree | d199dc46770e372ae5a07d9a14b84253b4d774e1 /ssh/certs.go | |
| parent | 2da167fbbea6ce6a7da8f70e1219ce25af656cbe (diff) | |
| download | go-x-crypto-d95b28330da59cfd5b511cea8d98ce3379610013.tar.xz | |
go.crypto/ssh: some cleanup
Simplify MarshalAuthorizedKey by using the algoName func.
Make the algoName func be very specific about supported key types in openssh certs.
Generalize some of the commentary that previously mentioned specific key types.
R=agl, dave
CC=golang-dev
https://golang.org/cl/6938067
Diffstat (limited to 'ssh/certs.go')
| -rw-r--r-- | ssh/certs.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh/certs.go b/ssh/certs.go index 4ef7103..437b07d 100644 --- a/ssh/certs.go +++ b/ssh/certs.go @@ -11,7 +11,8 @@ import ( "time" ) -// String constants in [PROTOCOL.certkeys] for certificate algorithm names. +// These constants from [PROTOCOL.certkeys] represent the algorithm names +// for certificate types supported by this package. const ( CertAlgoRSAv01 = "ssh-rsa-cert-v01@openssh.com" CertAlgoDSAv01 = "ssh-dss-cert-v01@openssh.com" |
