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

Issue 10690122: Change SpdySession::GetSSLInfo to get the SSLInfo from the underlying socket (Closed)

Created:
8 years, 5 months ago by Ryan Hamilton
Modified:
8 years, 5 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, cbentzel+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, darin-cc_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

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\* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147479

Patch Set 1 #

Patch Set 2 : Remove commented out code #

Patch Set 3 : Actual working test #

Total comments: 18

Patch Set 4 : Fix sleevi's comments #

Patch Set 5 : Expand comment on unit test. #

Total comments: 6

Patch Set 6 : Implement for non-linux sockets too #

Patch Set 7 : FIx curvercp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+559 lines, -56 lines) Patch
M content/browser/renderer_host/p2p/socket_host_test_utils.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M jingle/glue/pseudotcp_adapter.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M jingle/glue/pseudotcp_adapter.cc View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M jingle/notifier/base/fake_ssl_client_socket.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M jingle/notifier/base/fake_ssl_client_socket.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M jingle/notifier/base/fake_ssl_client_socket_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M jingle/notifier/base/proxy_resolving_client_socket.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M jingle/notifier/base/proxy_resolving_client_socket.cc View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M net/curvecp/curvecp_client_socket.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M net/curvecp/curvecp_client_socket.cc View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M net/http/http_network_transaction_spdy2_unittest.cc View 1 2 3 4 5 2 chunks +138 lines, -0 lines 0 comments Download
M net/http/http_network_transaction_spdy3_unittest.cc View 1 2 3 4 5 2 chunks +127 lines, -0 lines 0 comments Download
M net/http/http_proxy_client_socket.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M net/http/http_proxy_client_socket.cc View 1 2 3 4 5 2 chunks +16 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M net/socket/buffered_write_stream_socket.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M net/socket/buffered_write_stream_socket.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M net/socket/socket_test_util.h View 1 2 3 4 5 4 chunks +7 lines, -3 lines 0 comments Download
M net/socket/socket_test_util.cc View 1 2 3 4 5 5 chunks +24 lines, -11 lines 0 comments Download
M net/socket/socks5_client_socket.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M net/socket/socks5_client_socket.cc View 1 2 3 4 5 2 chunks +17 lines, -0 lines 0 comments Download
M net/socket/socks_client_socket.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M net/socket/socks_client_socket.cc View 1 2 3 4 5 2 chunks +17 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket.h View 1 2 3 4 5 2 chunks +3 lines, -10 lines 0 comments Download
M net/socket/ssl_client_socket.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M net/socket/ssl_client_socket_mac.h View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_mac.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M net/socket/ssl_client_socket_nss.h View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.h View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M net/socket/ssl_client_socket_pool_unittest.cc View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M net/socket/ssl_client_socket_win.h View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_win.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M net/socket/ssl_server_socket_nss.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M net/socket/ssl_server_socket_nss.cc View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M net/socket/ssl_server_socket_unittest.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M net/socket/stream_socket.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket_libevent.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket_libevent.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket_win.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket_win.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M net/socket/transport_client_socket_pool_unittest.cc View 1 2 3 4 5 3 chunks +18 lines, -0 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket.cc View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 2 3 4 5 1 chunk +4 lines, -9 lines 0 comments Download
M remoting/jingle_glue/ssl_socket_adapter.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/jingle_glue/ssl_socket_adapter.cc View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M remoting/protocol/fake_session.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/protocol/fake_session.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Ryan Hamilton
8 years, 5 months ago (2012-07-11 22:08:11 UTC) #1
Ryan Sleevi
https://chromiumcodereview.appspot.com/10690122/diff/3001/net/http/http_network_transaction_spdy2_unittest.cc File net/http/http_network_transaction_spdy2_unittest.cc (right): https://chromiumcodereview.appspot.com/10690122/diff/3001/net/http/http_network_transaction_spdy2_unittest.cc#newcode10079 net/http/http_network_transaction_spdy2_unittest.cc:10079: TEST_F(HttpNetworkTransactionSpdy2Test, DoNotUseSpdySessionIfCertDoesNotMatch) { Can you add a comment describing ...
8 years, 5 months ago (2012-07-11 22:50:42 UTC) #2
Ryan Hamilton
https://chromiumcodereview.appspot.com/10690122/diff/3001/net/http/http_network_transaction_spdy2_unittest.cc File net/http/http_network_transaction_spdy2_unittest.cc (right): https://chromiumcodereview.appspot.com/10690122/diff/3001/net/http/http_network_transaction_spdy2_unittest.cc#newcode10079 net/http/http_network_transaction_spdy2_unittest.cc:10079: TEST_F(HttpNetworkTransactionSpdy2Test, DoNotUseSpdySessionIfCertDoesNotMatch) { On 2012/07/11 22:50:43, Ryan Sleevi wrote: ...
8 years, 5 months ago (2012-07-11 23:37:25 UTC) #3
Ryan Hamilton
Attempted to elaborate on the test comment.
8 years, 5 months ago (2012-07-13 17:49:42 UTC) #4
Ryan Sleevi
Close. I just realized you haven't touched the other SSLClientSocket* classes, which you'll need to ...
8 years, 5 months ago (2012-07-13 18:32:03 UTC) #5
Ryan Hamilton
Good point about the other platforms. I've done the needful. As you anticipated, I was ...
8 years, 5 months ago (2012-07-16 19:24:08 UTC) #6
Ryan Sleevi
Just reviewed the SSLClientSocket* changes - I assume everything else was un-consting. LGTM.
8 years, 5 months ago (2012-07-17 01:22:43 UTC) #7
Ryan Hamilton
ajwong: can you look at the changes to remoting and jingle jam: can look at ...
8 years, 5 months ago (2012-07-17 22:04:57 UTC) #8
awong
Punting remoting + jingle to sergeyu@ as I am no longer working on Chromoting.
8 years, 5 months ago (2012-07-17 22:11:04 UTC) #9
Sergey Ulanov
remoting and jingle - LGTM
8 years, 5 months ago (2012-07-17 22:13:07 UTC) #10
jam
sergeyu is an owner for the content file
8 years, 5 months ago (2012-07-18 05:17:05 UTC) #11
Ryan Hamilton
On 2012/07/18 05:17:05, John Abd-El-Malek wrote: > sergeyu is an owner for the content file ...
8 years, 5 months ago (2012-07-18 15:27:25 UTC) #12
Sergey Ulanov
On 2012/07/18 15:27:25, Ryan Hamilton wrote: > On 2012/07/18 05:17:05, John Abd-El-Malek wrote: > > ...
8 years, 5 months ago (2012-07-18 18:15:46 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rch@chromium.org/10690122/15003
8 years, 5 months ago (2012-07-18 22:14:53 UTC) #14
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary filesare still unsupported at ...
8 years, 5 months ago (2012-07-18 22:34:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rch@chromium.org/10690122/15003
8 years, 5 months ago (2012-07-19 15:23:10 UTC) #16
commit-bot: I haz the power
Try job failure for 10690122-15003 (retry) on linux_clang for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-19 15:47:33 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rch@chromium.org/10690122/31004
8 years, 5 months ago (2012-07-19 16:08:57 UTC) #18
commit-bot: I haz the power
8 years, 5 months ago (2012-07-19 17:55:19 UTC) #19
Change committed as 147479

Powered by Google App Engine
This is Rietveld 408576698