Fix SpdySession::WriteCredentialFrame ECPrivateKey creation args.
commit6b2e61f991dc163278654b8461aaf3c26c000801
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 28 Feb 2012 08:06:54 +0000 (28 08:06 +0000)
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 28 Feb 2012 08:06:54 +0000 (28 08:06 +0000)
tree282385d49f63da0e4bee9e2676b4b3966953e6d8
parentb10da51df81081ecaa3adf31b06dd4fd1f61d0a7
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

Review URL: http://codereview.chromium.org/9455006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123940 0039d316-1c4b-4281-b951-d872f2087c98
crypto/crypto.gyp
crypto/ec_signature_creator.cc [new file with mode: 0644]
crypto/ec_signature_creator.h
crypto/ec_signature_creator_impl.h [new file with mode: 0644]
crypto/ec_signature_creator_nss.cc
crypto/ec_signature_creator_openssl.cc
crypto/ec_signature_creator_unittest.cc
net/spdy/spdy_http_stream_unittest.cc
net/spdy/spdy_session.cc