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

Issue 6061052: code review 6061052: ssh: cosmetic cleanups (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by agl1
Modified:
12 years ago
Reviewers:
dfc
CC:
jmp, golang-dev
Visibility:
Public.

Description

ssh: cosmetic cleanups These are the cosmetic cleanups from the bits of code that I rereviewed. 1) stringLength now takes a int; the length of the string. Too many callers were allocating with stringLength([]byte(s)) and stringLength only needs to call len(). 2) agent.go now has sendAndReceive to remove logic that was duplicated. 3) We now reject negative DH values 4) We now reject empty packets rather than crashing.

Patch Set 1 #

Patch Set 2 : diff -r 8e4015d2d681 https://agl%40golang.org@code.google.com/p/go.crypto/ #

Patch Set 3 : diff -r 8e4015d2d681 https://agl%40golang.org@code.google.com/p/go.crypto/ #

Patch Set 4 : diff -r 8e4015d2d681 https://agl%40golang.org@code.google.com/p/go.crypto/ #

Total comments: 12

Patch Set 5 : diff -r 1ce0f2904ef1 https://agl%40golang.org@code.google.com/p/go.crypto/ #

Patch Set 6 : diff -r 1ce0f2904ef1 https://agl%40golang.org@code.google.com/p/go.crypto/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -102 lines) Patch
M ssh/agent.go View 1 2 3 4 7 chunks +45 lines, -48 lines 0 comments Download
M ssh/certs.go View 1 3 chunks +7 lines, -9 lines 0 comments Download
M ssh/channel.go View 1 3 chunks +8 lines, -9 lines 0 comments Download
M ssh/cipher.go View 1 2 chunks +5 lines, -5 lines 0 comments Download
M ssh/client.go View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M ssh/client_auth.go View 1 1 chunk +1 line, -1 line 0 comments Download
M ssh/client_auth_test.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ssh/common.go View 1 2 3 4 5 5 chunks +17 lines, -9 lines 0 comments Download
M ssh/keys.go View 1 1 chunk +1 line, -1 line 0 comments Download
M ssh/messages.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ssh/server.go View 1 2 3 4 2 chunks +6 lines, -7 lines 0 comments Download
M ssh/session.go View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ssh/transport.go View 1 2 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 5
agl1
Hello dave@cheney.net (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://agl%40golang.org@code.google.com/p/go.crypto/
12 years ago (2012-04-19 17:04:58 UTC) #1
dfc
Thank you for this CL, especially taking a pass through the error messages. I only ...
12 years ago (2012-04-20 10:01:10 UTC) #2
jmp
Just chiming in! http://codereview.appspot.com/6061052/diff/5001/ssh/agent.go File ssh/agent.go (right): http://codereview.appspot.com/6061052/diff/5001/ssh/agent.go#newcode47 ssh/agent.go:47: const maxAgentResponseBytes = 16 << 20 ...
12 years ago (2012-04-20 12:44:24 UTC) #3
agl1
*** Submitted as http://code.google.com/p/go/source/detail?r=06ef434db227&repo=crypto *** ssh: cosmetic cleanups These are the cosmetic cleanups from the ...
12 years ago (2012-04-20 19:19:29 UTC) #4
dfc
12 years ago (2012-04-20 23:43:22 UTC) #5
> I thought about it. But everything else here is named based on the data type
> from the RFC. i.e. it's the length of the SSH `string'. So bytesLength seemed
> like a greater anomaly than taking the length.

As sound a reason as any.
Sign in to reply to this message.

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