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

Unified Diff: net/spdy/spdy_session.cc

Issue 9391027: Disable CREDENTIALS frames when using spdy/2.1 or earlier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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/spdy/spdy_http_stream_unittest.cc ('k') | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.cc
===================================================================
--- net/spdy/spdy_session.cc (revision 121782)
+++ net/spdy/spdy_session.cc (working copy)
@@ -553,6 +553,8 @@
return false;
SSLClientSocket* ssl_socket =
reinterpret_cast<SSLClientSocket*>(connection_->socket());
+ if (ssl_socket->protocol_negotiated() <= SSLClientSocket::kProtoSPDY21)
wtc 2012/02/14 00:57:36 Nit: it's safer to test < SSLClientSocket:: kProto
Ryan Hamilton 2012/02/14 00:58:55 Done.
+ return false;
if (!ssl_socket->WasOriginBoundCertSent())
return false;
return !credential_state_.HasCredential(origin);
« no previous file with comments | « net/spdy/spdy_http_stream_unittest.cc ('k') | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698