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

Issue 3855004: Make USE_OPENSSL and USE_NSS mutually exclusive (Closed)

Created:
10 years, 2 months ago by joth
Modified:
9 years, 7 months ago
Reviewers:
agl, bulach, wtc
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, Erik does not do reviews, ben+cc_chromium.org, cbentzel+watch_chromium.org, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, tim (not reviewing), Ryan Sleevi
Visibility:
Public.

Description

Make USE_OPENSSL and USE_NSS mutually exclusive - that is, defining use_openssl=1 will now remove all dependency on NSS. This does not impact any of the standard, non-openssl builds. Adds stub implementations of several files that need to be fully implemented in follow up patchs. Firefox import code will need some more substatial refactoring, as it makes little sense to be attempting a firefox import without NSS libraries to hand, however the UI etc has numerous assumption about the presence of this importer. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=63506

Patch Set 1 #

Patch Set 2 : Implemented HMAC #

Patch Set 3 : Wrong diff in previous patchset #

Patch Set 4 : Tidied up HMAC and SHA256 by add openssl_utils #

Patch Set 5 : Undo rename of sha2.cc as it is needed on non-nss mac & windows platforms #

Patch Set 6 : Make TODOs consistent #

Total comments: 40

Patch Set 7 : bulach comments #

Total comments: 14

Patch Set 8 : Add a TODO about null NSS decrypter #

Patch Set 9 : agl comments #

Total comments: 34

Patch Set 10 : wtc comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+543 lines, -28 lines) Patch
M base/base.gyp View 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 7 8 9 5 chunks +49 lines, -1 line 0 comments Download
A base/crypto/encryptor_openssl.cc View 1 3 4 5 6 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download
A base/crypto/rsa_private_key_openssl.cc View 1 3 4 5 6 7 8 9 1 chunk +79 lines, -0 lines 0 comments Download
A base/crypto/signature_creator_openssl.cc View 1 3 4 5 6 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download
A base/crypto/signature_verifier_openssl.cc View 1 3 4 5 6 7 8 1 chunk +41 lines, -0 lines 0 comments Download
M base/crypto/symmetric_key.h View 1 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download
A base/crypto/symmetric_key_openssl.cc View 1 3 4 5 6 7 8 9 1 chunk +43 lines, -0 lines 0 comments Download
A base/hmac_openssl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +57 lines, -0 lines 0 comments Download
A base/openssl_util.h View 4 5 6 7 8 9 1 chunk +53 lines, -0 lines 0 comments Download
A base/sha2_openssl.cc View 1 3 4 5 6 7 8 9 1 chunk +30 lines, -0 lines 0 comments Download
M build/all.gyp View 1 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M build/build_config.h View 1 3 4 5 6 7 8 9 1 chunk +7 lines, -1 line 0 comments Download
chrome/app/chrome_dll_main.cc View 1 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/options/advanced_options_handler.cc View 1 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/importer/nss_decryptor.h View 1 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
chrome/browser/importer/nss_decryptor_null.h View 1 3 4 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/browser/sync/util/nigori.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/cert_database.h View 1 chunk +1 line, -1 line 0 comments Download
M net/base/cert_test_util.h View 1 chunk +1 line, -1 line 0 comments Download
M net/http/des.cc View 1 3 4 5 6 7 8 1 chunk +8 lines, -1 line 0 comments Download
net/net.gyp View 1 3 4 5 6 7 chunks +33 lines, -16 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
joth
I still need to go through this one more time (mostly adding all the missing ...
10 years, 2 months ago (2010-10-19 20:23:09 UTC) #1
joth
Wan-Teh, Sorry to land this large patch on you, it's all the loose-ends to remove ...
10 years, 2 months ago (2010-10-20 19:35:55 UTC) #2
bulach
LGTM (but let Wan-Teh have the last word on it). one important comment about the ...
10 years, 2 months ago (2010-10-21 11:23:57 UTC) #3
joth
Thanks, think those are all addressed, although I've preferred to keep consistent with existing in ...
10 years, 2 months ago (2010-10-21 14:47:58 UTC) #4
agl
http://codereview.chromium.org/3855004/diff/30001/31003 File base/crypto/encryptor_openssl.cc (right): http://codereview.chromium.org/3855004/diff/30001/31003#newcode18 base/crypto/encryptor_openssl.cc:18: // TODO(joth): implement me. We have a NOTIMPLEMENTED macro ...
10 years, 2 months ago (2010-10-21 15:26:19 UTC) #5
wtc
Joth: I will try to review this CL today.
10 years, 2 months ago (2010-10-21 16:25:18 UTC) #6
joth
http://codereview.chromium.org/3855004/diff/30001/31003 File base/crypto/encryptor_openssl.cc (right): http://codereview.chromium.org/3855004/diff/30001/31003#newcode18 base/crypto/encryptor_openssl.cc:18: // TODO(joth): implement me. On 2010/10/21 15:26:20, agl wrote: ...
10 years, 2 months ago (2010-10-21 17:06:21 UTC) #7
joth
On 21 October 2010 16:25, <wtc@chromium.org> wrote: > Joth: I will try to review this ...
10 years, 2 months ago (2010-10-21 17:08:42 UTC) #8
wtc
LGTM. There is a bug in base/base.gyp, marked with "BUG" below. I have two other ...
10 years, 2 months ago (2010-10-21 19:29:32 UTC) #9
joth
Many thanks for the detailed comments. All addressed except for using a pattern to exclude ...
10 years, 2 months ago (2010-10-22 13:57:34 UTC) #10
wtc
10 years, 2 months ago (2010-10-22 22:46:03 UTC) #11
LGTM.

It is a good idea to include <arpa/inet.h> for htonl
explicitly.

Powered by Google App Engine
This is Rietveld 408576698