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

Issue 5195001: Fixes the remaining net_unittests for OpenSSL, with the exceptions (Closed)

Created:
10 years, 1 month ago by joth
Modified:
9 years, 7 months ago
Reviewers:
bulach, wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., agl, Ryan Sleevi
Visibility:
Public.

Description

Fixes the remaining unit tests failures for OpenSSL: - implements basic client certificate support in ssl socket - adds special-case IP address support to allow SSL connections to the test server (iff there is a trusted certificate in the store with 127.0.0.1 in its name) - enables the test server for loading the temporary cert - implements the DES encryptor (removed TODO about refactoring the file layout as it's already covered by a TODO in the .h file) - disabled KeygenHandler tests, as this is not implemented for openssl - disables the (firefox) importer unittests. BUG=None TEST=net_unittests now run green Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67990

Patch Set 1 #

Patch Set 2 : Add test server's cert, implement DES, disable Keygen tests #

Patch Set 3 : Disable browser unittests #

Total comments: 6

Patch Set 4 : bulach comments #

Patch Set 5 : Clarify comment #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -26 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +6 lines, -0 lines 2 comments Download
M net/base/keygen_handler_openssl.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/keygen_handler_unittest.cc View 1 2 2 chunks +14 lines, -2 lines 0 comments Download
M net/base/x509_certificate_openssl.cc View 1 1 chunk +14 lines, -11 lines 2 comments Download
M net/base/x509_openssl_util.cc View 1 2 3 4 1 chunk +9 lines, -1 line 2 comments Download
M net/http/des.cc View 1 2 3 2 chunks +12 lines, -3 lines 2 comments Download
M net/socket/ssl_client_socket_openssl.h View 1 3 chunks +6 lines, -1 line 3 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 2 3 6 chunks +51 lines, -3 lines 0 comments Download
M net/test/test_server.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/test/test_server.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
joth
Hi Marcus, Could you do a pass over this? It's bit of a monster; if ...
10 years ago (2010-12-01 16:27:22 UTC) #1
bulach
LGTM good stuff! few nits below, looking forward to a green pig! :) http://codereview.chromium.org/5195001/diff/6001/net/base/x509_openssl_util.cc File ...
10 years ago (2010-12-01 18:01:33 UTC) #2
joth
Thanks! All done and new snapshot uploaded. (but codereview seems to be down) On 1 ...
10 years ago (2010-12-01 19:47:11 UTC) #3
wtc
Please consider the following review comments as a drive-by review. They are all just style ...
10 years ago (2010-12-01 22:50:05 UTC) #4
joth
wtc, thanks for the comments - very sorry but I didn't see them before committing. ...
10 years ago (2010-12-02 17:12:01 UTC) #5
wtc
10 years ago (2010-12-03 18:56:05 UTC) #6
joth: it was me who commented on this CL too late (due to the
American Thanksgiving holidays).

http://codereview.chromium.org/5195001/diff/20001/net/socket/ssl_client_socke...
File net/socket/ssl_client_socket_openssl.h (right):

http://codereview.chromium.org/5195001/diff/20001/net/socket/ssl_client_socke...
net/socket/ssl_client_socket_openssl.h:45: int ClientCertRequestCallback(SSL*
ssl, X509** x509, EVP_PKEY** pkey);
On 2010/12/02 17:12:01, joth wrote:
>
> The .cc has slipped quite a way out of order (in fact, never was in order) and
> I'm reluctant to do a major re-ordering right now as I know several other
people
> have got sizable patches pending on this file and I don't want to disrupt them
> more than necessary.

YES!  This is the right call.  Do not make gratuitous reorderings
merely to comply with this Style Guide recommendation.

I suggested matching declaration and definition orders because
you were adding a new method.  I didn't mean to ask you to fix
the ordering of existing code.

Powered by Google App Engine
This is Rietveld 408576698