Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(863)

Delta Between Two Patch Sets: ssh/certs.go

Issue 6938067: code review 6938067: go.crypto/ssh: some cleanup (Closed)
Left Patch Set: diff -r 97169dc936c2 https://code.google.com/p/go.crypto Created 12 years, 3 months ago
Right Patch Set: diff -r fa541a5bd620 https://code.google.com/p/go.crypto Created 12 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « ssh/agent.go ('k') | ssh/common.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2012 The Go Authors. All rights reserved. 1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package ssh 5 package ssh
6 6
7 import ( 7 import (
8 "crypto/dsa" 8 "crypto/dsa"
9 "crypto/ecdsa" 9 "crypto/ecdsa"
10 "crypto/rsa" 10 "crypto/rsa"
11 "time" 11 "time"
12 ) 12 )
13 13
14 // These constants from [PROTOCOL.certkeys] represent the algorithm names 14 // These constants from [PROTOCOL.certkeys] represent the algorithm names
15 // for certificate types supported in this package. 15 // for certificate types supported by this package.
dave_cheney.net 2012/12/15 05:03:32 s/in/by/ ?
jmpittman 2012/12/16 03:55:49 Done.
16 const ( 16 const (
17 CertAlgoRSAv01 = "ssh-rsa-cert-v01@openssh.com" 17 CertAlgoRSAv01 = "ssh-rsa-cert-v01@openssh.com"
18 CertAlgoDSAv01 = "ssh-dss-cert-v01@openssh.com" 18 CertAlgoDSAv01 = "ssh-dss-cert-v01@openssh.com"
19 CertAlgoECDSA256v01 = "ecdsa-sha2-nistp256-cert-v01@openssh.com" 19 CertAlgoECDSA256v01 = "ecdsa-sha2-nistp256-cert-v01@openssh.com"
20 CertAlgoECDSA384v01 = "ecdsa-sha2-nistp384-cert-v01@openssh.com" 20 CertAlgoECDSA384v01 = "ecdsa-sha2-nistp384-cert-v01@openssh.com"
21 CertAlgoECDSA521v01 = "ecdsa-sha2-nistp521-cert-v01@openssh.com" 21 CertAlgoECDSA521v01 = "ecdsa-sha2-nistp521-cert-v01@openssh.com"
22 ) 22 )
23 23
24 // Certificate types are used to specify whether a certificate is for identifica tion 24 // Certificate types are used to specify whether a certificate is for identifica tion
25 // of a user or a host. Current identities are defined in [PROTOCOL.certkeys]. 25 // of a user or a host. Current identities are defined in [PROTOCOL.certkeys].
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 return 303 return
304 } 304 }
305 sig.Format = string(format) 305 sig.Format = string(format)
306 306
307 if sig.Blob, sigBytes, ok = parseString(sigBytes); !ok { 307 if sig.Blob, sigBytes, ok = parseString(sigBytes); !ok {
308 return 308 return
309 } 309 }
310 310
311 return sig, rest, ok 311 return sig, rest, ok
312 } 312 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b