summaryrefslogtreecommitdiffstats
path: root/net/socket
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-18 02:32:16 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-18 02:32:16 +0000
commit73343a3cfd3051abe006533661d0807426e8ce25 (patch)
tree56e8f856af836a213317076f8c13bb80b520b541 /net/socket
parent06cf4602dff3f23931f8652638249362e4fae878 (diff)
downloadchromium_src-73343a3cfd3051abe006533661d0807426e8ce25.zip
chromium_src-73343a3cfd3051abe006533661d0807426e8ce25.tar.gz
chromium_src-73343a3cfd3051abe006533661d0807426e8ce25.tar.bz2
Send only one byte of data in the first CBC encrypted aplication data
record. This randomizes the IV in a backward compatible manner. R=agl@chromium.org BUG=87159 TEST=HTTPS sites continue to work. Review URL: http://codereview.chromium.org/7621002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket')
-rw-r--r--net/socket/ssl_client_socket_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket/ssl_client_socket_unittest.cc b/net/socket/ssl_client_socket_unittest.cc
index b835342..be91029 100644
--- a/net/socket/ssl_client_socket_unittest.cc
+++ b/net/socket/ssl_client_socket_unittest.cc
@@ -403,7 +403,7 @@ TEST_F(SSLClientSocketTest, Read_FullDuplex) {
// memio circular buffer (4k bytes) in SSLClientSocketNSS to wrap around.
// This tests the fix for http://crbug.com/29815.
std::string request_text = "GET / HTTP/1.1\r\nUser-Agent: long browser name ";
- for (int i = 0; i < 3800; ++i)
+ for (int i = 0; i < 3770; ++i)
request_text.push_back('*');
request_text.append("\r\n\r\n");
scoped_refptr<net::IOBuffer> request_buffer(