Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Issue 9455006: Fix SpdySession::WriteCredentialFrame ECPrivateKey creation args. (Closed)

Created:
8 years, 10 months ago by mattm
Modified:
8 years, 9 months ago
Reviewers:
wtc, Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Fix SpdySession::WriteCredentialFrame ECPrivateKey creation args. It was passing the DER certificate instead of a SubjectPublicKeyInfo. Also adds ECSignatureCreator::SetFactoryForTesting method to allow easier testing of code that uses ECSignatureCreator. BUG=none TEST=SpdyHttpStreamTest.SendCredentialsEC Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123940

Patch Set 1 #

Patch Set 2 : fix openssl #

Patch Set 3 : forgot add #

Total comments: 8

Patch Set 4 : clang fixes #

Patch Set 5 : review changes #

Total comments: 9

Patch Set 6 : rebase #

Patch Set 7 : review nits #

Patch Set 8 : rebase #

Patch Set 9 : ECSignatureCreatorImpl #

Patch Set 10 : openssl fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -55 lines) Patch
M crypto/crypto.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M crypto/ec_signature_creator.h View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -12 lines 0 comments Download
A crypto/ec_signature_creator.cc View 1 2 3 4 5 6 7 8 1 chunk +30 lines, -0 lines 0 comments Download
A crypto/ec_signature_creator_impl.h View 1 2 3 4 5 6 7 8 1 chunk +31 lines, -0 lines 0 comments Download
M crypto/ec_signature_creator_nss.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -11 lines 0 comments Download
M crypto/ec_signature_creator_openssl.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -12 lines 0 comments Download
M crypto/ec_signature_creator_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M net/spdy/spdy_http_stream_unittest.cc View 1 2 3 4 5 7 chunks +125 lines, -11 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mattm
Figured this fix should be split out.
8 years, 10 months ago (2012-02-23 03:49:59 UTC) #1
Ryan Hamilton
http://codereview.chromium.org/9455006/diff/6004/crypto/ec_signature_creator.cc File crypto/ec_signature_creator.cc (right): http://codereview.chromium.org/9455006/diff/6004/crypto/ec_signature_creator.cc#newcode11 crypto/ec_signature_creator.cc:11: ECSignatureCreatorFactory* g_factory_ = NULL; I was going to recommend ...
8 years, 10 months ago (2012-02-23 04:36:12 UTC) #2
mattm
thanks, updated. Also added OVERRIDE in a few places. http://codereview.chromium.org/9455006/diff/6004/crypto/ec_signature_creator.h File crypto/ec_signature_creator.h (right): http://codereview.chromium.org/9455006/diff/6004/crypto/ec_signature_creator.h#newcode21 crypto/ec_signature_creator.h:21: ...
8 years, 10 months ago (2012-02-23 04:44:57 UTC) #3
Ryan Hamilton
lgtm
8 years, 10 months ago (2012-02-23 19:38:14 UTC) #4
wtc
Patch Set 5 LGTM. I didn't review net/spdy/spdy_http_stream_unittest.cc. http://codereview.chromium.org/9455006/diff/4016/crypto/ec_signature_creator.h File crypto/ec_signature_creator.h (right): http://codereview.chromium.org/9455006/diff/4016/crypto/ec_signature_creator.h#newcode40 crypto/ec_signature_creator.h:40: // ...
8 years, 10 months ago (2012-02-23 23:39:57 UTC) #5
mattm
http://codereview.chromium.org/9455006/diff/4016/crypto/ec_signature_creator.h File crypto/ec_signature_creator.h (right): http://codereview.chromium.org/9455006/diff/4016/crypto/ec_signature_creator.h#newcode40 crypto/ec_signature_creator.h:40: // ECSignatureCreator objects. Because the elliptic curve signature algorithm ...
8 years, 10 months ago (2012-02-24 01:05:28 UTC) #6
wtc
http://codereview.chromium.org/9455006/diff/4016/crypto/ec_signature_creator.h File crypto/ec_signature_creator.h (right): http://codereview.chromium.org/9455006/diff/4016/crypto/ec_signature_creator.h#newcode56 crypto/ec_signature_creator.h:56: static ECSignatureCreator* CreatePlatformImpl(ECPrivateKey* key); On 2012/02/24 01:05:28, mattm wrote: ...
8 years, 10 months ago (2012-02-24 01:12:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/9455006/8002
8 years, 9 months ago (2012-02-28 05:26:08 UTC) #8
commit-bot: I haz the power
8 years, 9 months ago (2012-02-28 08:06:57 UTC) #9
Change committed as 123940

Powered by Google App Engine
This is Rietveld 408576698