|
Change the bad-certificate handler for SSL (using NSS) to return an
error.
This requires a few additional changes in the rest of the code. In
particular, we now have to teach HttpNetworkTransaction about how to
restart connections with bad certificates. This was originally
intended to be done by ReconnectIgnoringLastError(), but that API
turns out be very difficult to implement in the SSLClientSocket. So,
instead, we just create a completely new SSLClientSocket.
We also have to be careful to store a copy of the certificate from
within the bad-certificate handler, as it won't be available by the
time GetSSLInfo() is called.
And we fix a bug that would cause us to erroneously talk SSL on
reconnected TCP sockets, even though we were still supposed to
negotiate a proxy tunnel first.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12809
Total comments: 9
Total comments: 26
Total comments: 6
Total comments: 11
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+653 lines, -179 lines) |
Patch |
 |
M |
chrome/browser/ssl/ssl_policy.cc
|
View
|
2
3
4
5
6
7
|
2 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/base/client_socket.h
|
View
|
7
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/base/client_socket_pool_unittest.cc
|
View
|
7
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/base/ssl_client_socket.h
|
View
|
4
5
6
7
8
9
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
net/base/ssl_client_socket_mac.h
|
View
|
4
5
6
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/base/ssl_client_socket_mac.cc
|
View
|
4
5
6
7
8
9
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
net/base/ssl_client_socket_nss.h
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/base/ssl_client_socket_nss.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
9 chunks |
+108 lines, -21 lines |
0 comments
|
Download
|
 |
M |
net/base/ssl_client_socket_unittest.cc
|
View
|
2
3
4
5
6
7
|
8 chunks |
+48 lines, -14 lines |
0 comments
|
Download
|
 |
M |
net/base/ssl_client_socket_win.h
|
View
|
4
5
6
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/base/ssl_client_socket_win.cc
|
View
|
4
5
6
7
8
9
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
net/base/ssl_config_service.h
|
View
|
7
8
9
|
2 chunks |
+9 lines, -0 lines |
1 comment
|
Download
|
 |
M |
net/base/tcp_client_socket.h
|
View
|
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/base/tcp_client_socket_libevent.cc
|
View
|
7
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/base/tcp_client_socket_win.cc
|
View
|
7
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/http/http_network_transaction.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
net/http/http_network_transaction.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
7 chunks |
+42 lines, -38 lines |
3 comments
|
Download
|
 |
M |
net/http/http_network_transaction_unittest.cc
|
View
|
5
6
7
8
9
|
9 chunks |
+321 lines, -50 lines |
3 comments
|
Download
|
 |
M |
net/url_request/url_request_unittest.h
|
View
|
2
3
4
5
6
7
|
6 chunks |
+16 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_unittest.cc
|
View
|
2
3
4
5
6
7
|
2 chunks |
+63 lines, -3 lines |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|