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

Issue 3812007: Support restriction the TLS cipher selection in test_server.py (Closed)

Created:
10 years, 2 months ago by Ryan Sleevi
Modified:
9 years, 7 months ago
Reviewers:
wtc, Paweł Hajdan Jr.
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, pam+watch_chromium.org, davidben, Paweł Hajdan Jr., ben+cc_chromium.org
Visibility:
Public.

Description

Add support to test_server.py to restrict the SSL/TLS bulk encryption algorithms via the command-line argument --ssl-alg. BUG=58831 TEST=Run test_server.py as an HTTPS server with --ssl-alg=rc4. Connect via openssl s_client -connect 127.0.0.1:1337 -cipher DEFAULT:\!RC4. Observe a connection failure. Connect with openssl s_client -connect 127.0.0.1:1337, observe that a ciphersuite that uses RC4 is negotiated. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64233

Patch Set 1 #

Total comments: 2

Patch Set 2 : TestServer changes #

Total comments: 12

Patch Set 3 : Feedback from phadjan.jr #

Patch Set 4 : Fix URLFetcherUnittest #

Total comments: 5

Patch Set 5 : Feedback from wtc #

Total comments: 2

Patch Set 6 : Rebase to trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -132 lines) Patch
M chrome/browser/ssl/ssl_browser_tests.cc View 2 3 4 5 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/common/net/url_fetcher_unittest.cc View 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M net/socket/ssl_client_socket_unittest.cc View 2 3 4 4 chunks +12 lines, -8 lines 0 comments Download
M net/test/test_server.h View 2 3 4 6 chunks +73 lines, -8 lines 0 comments Download
net/test/test_server.cc View 2 3 4 5 7 chunks +127 lines, -46 lines 0 comments Download
M net/test/test_server_posix.cc View 2 3 4 5 4 chunks +12 lines, -24 lines 0 comments Download
M net/test/test_server_win.cc View 2 6 chunks +16 lines, -33 lines 0 comments Download
M net/tools/testserver/testserver.py View 1 2 3 4 5 chunks +19 lines, -4 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 2 3 4 3 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Ryan Sleevi
Pawel: While this change to test_server.py itself is quite minor, I'd like to also expose ...
10 years, 2 months ago (2010-10-15 07:31:43 UTC) #1
Paweł Hajdan Jr.
That's right, setting up TestServer at the time of construction is strongly preferred (I'm not ...
10 years, 2 months ago (2010-10-15 07:49:47 UTC) #2
wtc
rsleevi: thanks for the patch. Please ask me to review all SSL-related changes to test_server.py ...
10 years, 2 months ago (2010-10-15 18:36:07 UTC) #3
wtc
Just to clarify: what I meant is that phajdan.jr should review all changes to test_server.py. ...
10 years, 2 months ago (2010-10-15 18:38:20 UTC) #4
Ryan Sleevi
On 2010/10/15 18:38:20, wtc wrote: > Just to clarify: what I meant is that phajdan.jr ...
10 years, 2 months ago (2010-10-15 19:24:04 UTC) #5
Ryan Sleevi
PTAL - I've uploaded a new changeset with the changes to C++ TestServer. There are ...
10 years, 2 months ago (2010-10-16 08:57:14 UTC) #6
Paweł Hajdan Jr.
Some rather minor comments from me. I think this is the right direction for the ...
10 years, 2 months ago (2010-10-16 09:17:36 UTC) #7
Ryan Sleevi
Thanks for the feedback @phajdan.jr. I've moved the python launching to use CommandLine, rather than ...
10 years, 2 months ago (2010-10-16 11:24:17 UTC) #8
Paweł Hajdan Jr.
LGTM. Nice CommandLine cleanup!
10 years, 2 months ago (2010-10-16 11:34:09 UTC) #9
wtc
rsleevi: I glanced through Patch Set 4. (It's longer than I had time to review. ...
10 years, 2 months ago (2010-10-25 20:31:22 UTC) #10
Ryan Sleevi
@wtc: Thanks, I've incorporated all of your suggestions. I wasn't sure if the "It looks ...
10 years, 2 months ago (2010-10-26 02:58:41 UTC) #11
wtc
10 years, 1 month ago (2010-10-26 22:29:44 UTC) #12
rsleevi: I'm sorry I wasn't clear.

I consider phajdan.jr as the primary reviewer of this CL.
Since he said LGTM, you can check this in.

I cannot say "LGTM" because I didn't review the entire CL.
But the parts I reviewed (quickly) look correct.

Please commit this CL.  Thanks!

http://codereview.chromium.org/3812007/diff/51001/52003
File net/socket/ssl_client_socket_unittest.cc (right):

http://codereview.chromium.org/3812007/diff/51001/52003#newcode71
net/socket/ssl_client_socket_unittest.cc:71: NULL /* ssl_host_info */));
Nit: I would delete the /* ssl_host_info */ comments.

http://codereview.chromium.org/3812007/diff/51001/52008
File net/tools/testserver/testserver.py (right):

http://codereview.chromium.org/3812007/diff/51001/52008#newcode1250
net/tools/testserver/testserver.py:1250: 'specified file. This option may appear
multiple '
Hmm... is this behavior implied by "action='append'"?
I'm sorry if I made you document the obvious.

Powered by Google App Engine
This is Rietveld 408576698