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

Issue 5489073: code review 5489073: crypto/tls: don't assume an RSA private key in the API. (Closed)

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

Description

crypto/tls: don't assume an RSA private key in the API. We still very much assume it in the code, but with this change in place we can implement other things later without changing and users of the package. Fixes issue 2319.

Patch Set 1 #

Patch Set 2 : diff -r 15b63cc10b22 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 15b63cc10b22 https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 4 : diff -r 15b63cc10b22 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 113217f9853a https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 113217f9853a https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M src/pkg/crypto/crypto.go View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/crypto/tls/common.go View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/tls/handshake_client.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/crypto/tls/key_agreement.go View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7
agl1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 4 months ago (2011-12-17 17:23:48 UTC) #1
bradfitz
http://codereview.appspot.com/5489073/diff/3/src/pkg/crypto/tls/common.go File src/pkg/crypto/tls/common.go (right): http://codereview.appspot.com/5489073/diff/3/src/pkg/crypto/tls/common.go#newcode257 src/pkg/crypto/tls/common.go:257: PrivateKey interface{} sadness, but understandable. at least add a ...
12 years, 4 months ago (2011-12-17 17:40:50 UTC) #2
bradfitz
http://codereview.appspot.com/5489073/diff/3/src/pkg/crypto/tls/common.go File src/pkg/crypto/tls/common.go (right): http://codereview.appspot.com/5489073/diff/3/src/pkg/crypto/tls/common.go#newcode257 src/pkg/crypto/tls/common.go:257: PrivateKey interface{} talking to myself, but would it be ...
12 years, 4 months ago (2011-12-17 17:44:00 UTC) #3
agl1
http://codereview.appspot.com/5489073/diff/3/src/pkg/crypto/tls/common.go File src/pkg/crypto/tls/common.go (right): http://codereview.appspot.com/5489073/diff/3/src/pkg/crypto/tls/common.go#newcode257 src/pkg/crypto/tls/common.go:257: PrivateKey interface{} On 2011/12/17 17:44:00, bradfitz wrote: > talking ...
12 years, 4 months ago (2011-12-17 18:33:57 UTC) #4
r
LGTM
12 years, 4 months ago (2011-12-17 18:53:23 UTC) #5
bradfitz
LGTM But I'd still put a comment after it in the struct: PrivateKey crypto.PrivateKey // ...
12 years, 4 months ago (2011-12-17 20:22:40 UTC) #6
agl1
12 years, 4 months ago (2011-12-19 15:39:38 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=6392106665e7 ***

crypto/tls: don't assume an RSA private key in the API.

We still very much assume it in the code, but with this change in
place we can implement other things later without changing and users
of the package.

Fixes issue 2319.

R=golang-dev, bradfitz, r
CC=golang-dev
http://codereview.appspot.com/5489073
Sign in to reply to this message.

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