summaryrefslogtreecommitdiffstats
path: root/remoting/jingle_glue
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-19 17:55:17 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-19 17:55:17 +0000
commit2d88e7d8b4c382e0ef178c52a87450c226150ef2 (patch)
treeb76d5921ed1ed5c2321570306779aab993f74568 /remoting/jingle_glue
parentf7b2b6a665c130d4ca6b08fdec87b2fad3198f3d (diff)
downloadchromium_src-2d88e7d8b4c382e0ef178c52a87450c226150ef2.zip
chromium_src-2d88e7d8b4c382e0ef178c52a87450c226150ef2.tar.gz
chromium_src-2d88e7d8b4c382e0ef178c52a87450c226150ef2.tar.bz2
Change SpdySession::GetSSLInfo to get the SSLInfo from the underlying socket
even if the session is not "secure". This required refactoring StreamSocket to add WasNpnNegotiated() and GetSSLInfo() methods. This allows for a change to SpdySession::GetSSLInfo to accurately return the correct SSLInfo in the case of SPDY Proxy sessions. BUG=134690 TEST=\*DoNotUseSpdySessionIfCertDoesNotMatch\* Review URL: https://chromiumcodereview.appspot.com/10690122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147479 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/jingle_glue')
-rw-r--r--remoting/jingle_glue/ssl_socket_adapter.cc10
-rw-r--r--remoting/jingle_glue/ssl_socket_adapter.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/remoting/jingle_glue/ssl_socket_adapter.cc b/remoting/jingle_glue/ssl_socket_adapter.cc
index 4ff09a5c9..08ba785 100644
--- a/remoting/jingle_glue/ssl_socket_adapter.cc
+++ b/remoting/jingle_glue/ssl_socket_adapter.cc
@@ -349,11 +349,21 @@ base::TimeDelta TransportSocket::GetConnectTimeMicros() const {
return base::TimeDelta::FromMicroseconds(-1);
}
+bool TransportSocket::WasNpnNegotiated() const {
+ NOTREACHED();
+ return false;
+}
+
net::NextProto TransportSocket::GetNegotiatedProtocol() const {
NOTREACHED();
return net::kProtoUnknown;
}
+bool TransportSocket::GetSSLInfo(net::SSLInfo* ssl_info) {
+ NOTREACHED();
+ return false;
+}
+
int TransportSocket::Read(net::IOBuffer* buf, int buf_len,
const net::CompletionCallback& callback) {
DCHECK(buf);
diff --git a/remoting/jingle_glue/ssl_socket_adapter.h b/remoting/jingle_glue/ssl_socket_adapter.h
index c95ac3a..e62c048 100644
--- a/remoting/jingle_glue/ssl_socket_adapter.h
+++ b/remoting/jingle_glue/ssl_socket_adapter.h
@@ -54,7 +54,9 @@ class TransportSocket : public net::StreamSocket, public sigslot::has_slots<> {
virtual bool UsingTCPFastOpen() const OVERRIDE;
virtual int64 NumBytesRead() const OVERRIDE;
virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
+ virtual bool WasNpnNegotiated() const OVERRIDE;
virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE;
+ virtual bool GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE;
// net::Socket implementation.
virtual int Read(net::IOBuffer* buf, int buf_len,