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

Unified Diff: net/spdy/spdy_test_util_spdy3.cc

Issue 10910226: crypto: change ECSignatureCreator defaults to match SPDY. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address wtc's comments Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« crypto/ec_signature_creator_nss.cc ('K') | « net/spdy/spdy_credential_builder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_test_util_spdy3.cc
diff --git a/net/spdy/spdy_test_util_spdy3.cc b/net/spdy/spdy_test_util_spdy3.cc
index cffd9eb8906c886757340779832ade1deda78110..7c19c862313e40da9340ef018d962c55b7cd8970 100644
--- a/net/spdy/spdy_test_util_spdy3.cc
+++ b/net/spdy/spdy_test_util_spdy3.cc
@@ -63,6 +63,13 @@ class MockECSignatureCreator : public crypto::ECSignatureCreator {
return true;
}
+ virtual bool DecodeSignature(const std::vector<uint8>& signature,
+ std::string* out_raw_sig) {
+ out_raw_sig->assign(reinterpret_cast<const char*>(signature.data()),
+ signature.size());
+ return true;
+ }
+
private:
crypto::ECPrivateKey* key_;
« crypto/ec_signature_creator_nss.cc ('K') | « net/spdy/spdy_credential_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698