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

Unified Diff: net/quic/test_tools/crypto_test_utils_openssl.cc

Issue 320663002: Change the prototype of ChannelIDSource::GetChannelIDKey() to allow an (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove unrelated changes Created 6 years, 6 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
« no previous file with comments | « net/quic/test_tools/crypto_test_utils_nss.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/crypto_test_utils_openssl.cc
===================================================================
--- net/quic/test_tools/crypto_test_utils_openssl.cc (revision 275522)
+++ net/quic/test_tools/crypto_test_utils_openssl.cc (working copy)
@@ -38,7 +38,7 @@
// ChannelIDKey implementation.
virtual bool Sign(StringPiece signed_data,
- string* out_signature) OVERRIDE {
+ string* out_signature) const OVERRIDE {
EVP_MD_CTX md_ctx;
EVP_MD_CTX_init(&md_ctx);
crypto::ScopedOpenSSL<EVP_MD_CTX, EvpMdCtxCleanUp>
@@ -85,7 +85,7 @@
return true;
}
- virtual string SerializeKey() OVERRIDE {
+ virtual string SerializeKey() const OVERRIDE {
// i2d_PublicKey will produce an ANSI X9.62 public key which, for a P-256
// key, is 0x04 (meaning uncompressed) followed by the x and y field
// elements as 32-byte, big-endian numbers.
@@ -113,11 +113,12 @@
// ChannelIDSource implementation.
- virtual bool GetChannelIDKey(
+ virtual QuicAsyncStatus GetChannelIDKey(
const string& hostname,
- scoped_ptr<ChannelIDKey>* channel_id_key) OVERRIDE {
+ scoped_ptr<ChannelIDKey>* channel_id_key,
+ ChannelIDSourceCallback* /*callback*/) OVERRIDE {
channel_id_key->reset(new TestChannelIDKey(HostnameToKey(hostname)));
- return true;
+ return QUIC_SUCCESS;
}
private:
« no previous file with comments | « net/quic/test_tools/crypto_test_utils_nss.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698