Descriptionssh: 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/ #
MessagesTotal messages: 5
|