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

Unified Diff: net/socket/ssl_client_socket_openssl.cc

Issue 8787011: Log server advertised protos and the selected (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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/ssl_client_socket_openssl.cc
===================================================================
--- net/socket/ssl_client_socket_openssl.cc (revision 112817)
+++ net/socket/ssl_client_socket_openssl.cc (working copy)
@@ -605,8 +605,9 @@
}
SSLClientSocket::NextProtoStatus SSLClientSocketOpenSSL::GetNextProto(
- std::string* proto) {
+ std::string* proto, std::string* server_proto) {
*proto = npn_proto_;
+ *server_proto = protos_;
return npn_status_;
}
@@ -826,6 +827,7 @@
}
npn_proto_.assign(reinterpret_cast<const char*>(*out), *outlen);
+ protos_.assign(reinterpret_cast<const char*>(in), inlen);
switch (status) {
case OPENSSL_NPN_NEGOTIATED:
npn_status_ = SSLClientSocket::kNextProtoNegotiated;

Powered by Google App Engine
This is Rietveld 408576698