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

Issue 13176044: code review 13176044: crypto/ssh: Allow customization of the client version. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by jpsugar
Modified:
10 years, 8 months ago
Reviewers:
CC:
agl1, golang-dev, dave_cheney.net
Visibility:
Public.

Description

crypto/ssh: Allow customization of the client version.

Patch Set 1 #

Patch Set 2 : diff -r 1e7a3e301825 https://code.google.com/p/go.crypto #

Patch Set 3 : diff -r 1e7a3e301825 https://code.google.com/p/go.crypto #

Patch Set 4 : diff -r cbce6bcde600 https://code.google.com/p/go.crypto #

Patch Set 5 : diff -r cbce6bcde600 https://code.google.com/p/go.crypto #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -4 lines) Patch
M ssh/client.go View 1 4 chunks +16 lines, -4 lines 6 comments Download
A ssh/client_test.go View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 8
jpsugar
Hello agl@golang.org, golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.crypto
10 years, 8 months ago (2013-08-26 19:30:32 UTC) #1
agl1
What's the use case here?
10 years, 8 months ago (2013-08-26 19:42:04 UTC) #2
jpsugar
On 2013/08/26 19:42:04, agl1 wrote: > What's the use case here? I have a server ...
10 years, 8 months ago (2013-08-26 19:50:05 UTC) #3
dave_cheney.net
On 2013/08/26 19:50:05, jpsugar wrote: > On 2013/08/26 19:42:04, agl1 wrote: > > What's the ...
10 years, 8 months ago (2013-08-27 01:40:53 UTC) #4
jpsugar
Hello agl@golang.org, golang-dev@googlegroups.com, dave@cheney.net (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 8 months ago (2013-08-27 16:46:20 UTC) #5
agl1
https://codereview.appspot.com/13176044/diff/12002/ssh/client.go File ssh/client.go (right): https://codereview.appspot.com/13176044/diff/12002/ssh/client.go#newcode21 ssh/client.go:21: const DefaultClientVersion string = "SSH-2.0-Go" why export this? https://codereview.appspot.com/13176044/diff/12002/ssh/client.go#newcode67 ...
10 years, 8 months ago (2013-08-27 16:57:30 UTC) #6
jpsugar
https://codereview.appspot.com/13176044/diff/12002/ssh/client.go File ssh/client.go (right): https://codereview.appspot.com/13176044/diff/12002/ssh/client.go#newcode21 ssh/client.go:21: const DefaultClientVersion string = "SSH-2.0-Go" On 2013/08/27 16:57:30, agl1 ...
10 years, 8 months ago (2013-08-27 17:07:56 UTC) #7
agl1
10 years, 8 months ago (2013-08-27 17:40:19 UTC) #8
*** Submitted as
https://code.google.com/p/go/source/detail?r=e402c6ee12fd&repo=crypto ***

crypto/ssh: Allow customization of the client version.

R=agl, golang-dev, dave
CC=golang-dev
https://codereview.appspot.com/13176044

Committer: Adam Langley <agl@golang.org>

https://codereview.appspot.com/13176044/diff/12002/ssh/client.go
File ssh/client.go (right):

https://codereview.appspot.com/13176044/diff/12002/ssh/client.go#newcode21
ssh/client.go:21: const DefaultClientVersion string = "SSH-2.0-Go"
On 2013/08/27 17:07:56, jpsugar wrote:
> On 2013/08/27 16:57:30, agl1 wrote:
> > why export this?
> 
> In case someone wants to know what client version we're using? I figured it
> didn't hurt. Can revert this if you prefer.

I've changed it back to private.

https://codereview.appspot.com/13176044/diff/12002/ssh/client.go#newcode67
ssh/client.go:67: var buf bytes.Buffer
On 2013/08/27 17:07:56, jpsugar wrote:
> On 2013/08/27 16:57:30, agl1 wrote:
> > the bytes.Buffer isn't needed, but don't worry about it. I'll fix that when
> > landing.
> 
> I was trying to preserve the single-write behavior. Were you thinking of
> switching it to two c.Write() calls?

No, just using a []byte rather than a whole bytes.Buffer. Done.
Sign in to reply to this message.

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