summaryrefslogtreecommitdiffstats
path: root/crypto/ec_signature_creator_openssl.cc
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-28 08:06:54 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-28 08:06:54 +0000
commit6b2e61f991dc163278654b8461aaf3c26c000801 (patch)
tree282385d49f63da0e4bee9e2676b4b3966953e6d8 /crypto/ec_signature_creator_openssl.cc
parentb10da51df81081ecaa3adf31b06dd4fd1f61d0a7 (diff)
downloadchromium_src-6b2e61f991dc163278654b8461aaf3c26c000801.zip
chromium_src-6b2e61f991dc163278654b8461aaf3c26c000801.tar.gz
chromium_src-6b2e61f991dc163278654b8461aaf3c26c000801.tar.bz2
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
Diffstat (limited to 'crypto/ec_signature_creator_openssl.cc')
-rw-r--r--crypto/ec_signature_creator_openssl.cc18
1 files changed, 6 insertions, 12 deletions
diff --git a/crypto/ec_signature_creator_openssl.cc b/crypto/ec_signature_creator_openssl.cc
index 9fa8ddc..ae443c4 100644
--- a/crypto/ec_signature_creator_openssl.cc
+++ b/crypto/ec_signature_creator_openssl.cc
@@ -2,28 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "crypto/ec_signature_creator.h"
+#include "crypto/ec_signature_creator_impl.h"
#include "base/logging.h"
namespace crypto {
-// static
-ECSignatureCreator* ECSignatureCreator::Create(ECPrivateKey* key) {
- NOTIMPLEMENTED();
- return NULL;
-}
-
-ECSignatureCreator::ECSignatureCreator(ECPrivateKey* key)
+ECSignatureCreatorImpl::ECSignatureCreatorImpl(ECPrivateKey* key)
: key_(key) {
NOTIMPLEMENTED();
}
-ECSignatureCreator::~ECSignatureCreator() { }
+ECSignatureCreatorImpl::~ECSignatureCreatorImpl() {}
-bool ECSignatureCreator::Sign(const uint8* data,
- int data_len,
- std::vector<uint8>* signature) {
+bool ECSignatureCreatorImpl::Sign(const uint8* data,
+ int data_len,
+ std::vector<uint8>* signature) {
NOTIMPLEMENTED();
return false;
}