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

Unified Diff: net/socket/socket_test_util.cc

Issue 10823084: Add a new GetTlsUniqueChannelBinding method to SSLSocket, and implement nss version. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
Index: net/socket/socket_test_util.cc
diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc
index ff66830230ad73c2efb139795a2f191a7812f667..8bc5183bf0458d00cd4daf2fd2d5c9a50fa87b0a 100644
--- a/net/socket/socket_test_util.cc
+++ b/net/socket/socket_test_util.cc
@@ -717,6 +717,14 @@ int MockClientSocket::ExportKeyingMaterial(const base::StringPiece& label,
return OK;
}
+int MockClientSocket::GetTlsUniqueChannelBinding(unsigned char* out,
+ unsigned int *outlen,
+ unsigned int outlen_max) {
+ memset(out, 'B', outlen_max);
+ *outlen = outlen_max;
wtc 2012/07/30 20:05:08 I wonder if we should memset 12 bytes and store 12
Ryan Hamilton 2012/07/30 21:37:58 Done.
+ return OK;
+}
+
ServerBoundCertService* MockClientSocket::GetServerBoundCertService() const {
NOTREACHED();
return NULL;

Powered by Google App Engine
This is Rietveld 408576698