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

Issue 686883002: Add crypto/wincrypt_shim.h wrapper header to resolve BoringSSL conflicts. (Closed)

Created:
6 years, 1 month ago by davidben
Modified:
6 years, 1 month ago
Reviewers:
Lei Zhang, Ryan Sleevi
CC:
chromium-reviews, gcasto+watchlist_chromium.org, cbentzel+watch_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add crypto/wincrypt_shim.h wrapper header to resolve BoringSSL conflicts. wincrypt.h defines macros that conflict with BoringSSL. Introduce a crypto/wincrypt_shim.h wrapper header which #undefs those macros and instead #defines replacement ones. All Chromium headers should use this wrapper header. BUG=338884 Committed: https://crrev.com/c6ac2609dd032e468440cd4f7f86770b4cb9774d Cr-Commit-Position: refs/heads/master@{#301994}

Patch Set 1 #

Patch Set 2 : X509_NAME -> WINCRYPT_X509_NAME, rebase #

Total comments: 6

Patch Set 3 : sleevi comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -30 lines) Patch
M chrome/app/signature_validator_win.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/app/signature_validator_win_unittest.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_win_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M components/os_crypt/ie7_password_win.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M components/os_crypt/os_crypt_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M crypto/capi_util.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M crypto/crypto.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M crypto/hmac_win.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M crypto/scoped_capi_types.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
A crypto/wincrypt_shim.h View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
M net/base/keygen_handler_win.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M net/cert/cert_database_win.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M net/cert/cert_verify_proc_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/sha256_legacy_support_win.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/cert/sha256_legacy_support_win.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M net/cert/test_root_certs.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/cert/test_root_certs_win.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M net/cert/x509_cert_types_win.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M net/cert/x509_certificate.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M net/ssl/client_cert_store_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/test/spawned_test_server/local_test_server_win.cc View 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
davidben
Splitting this out from the rest of the net_unittests fix since there's a lot of ...
6 years, 1 month ago (2014-10-28 20:22:06 UTC) #2
Ryan Sleevi
I'm nominally nervous because not including windows.h first can cause other weird issues (notably its ...
6 years, 1 month ago (2014-10-29 20:40:24 UTC) #3
davidben
+thestig for chrome/ and components/ OWNERS. https://codereview.chromium.org/686883002/diff/20001/chrome/browser/password_manager/password_store_win_unittest.cc File chrome/browser/password_manager/password_store_win_unittest.cc (right): https://codereview.chromium.org/686883002/diff/20001/chrome/browser/password_manager/password_store_win_unittest.cc#newcode6 chrome/browser/password_manager/password_store_win_unittest.cc:6: #include <string> On ...
6 years, 1 month ago (2014-10-29 22:49:59 UTC) #5
davidben
On 2014/10/29 20:40:24, Ryan Sleevi wrote: > I'm nominally nervous because not including windows.h first ...
6 years, 1 month ago (2014-10-29 22:52:46 UTC) #6
Lei Zhang
On 2014/10/29 22:49:59, David Benjamin wrote: > +thestig for chrome/ and components/ OWNERS. lgtm
6 years, 1 month ago (2014-10-29 22:55:15 UTC) #7
Ryan Sleevi
On 2014/10/29 22:52:46, David Benjamin wrote: > On 2014/10/29 20:40:24, Ryan Sleevi wrote: > > ...
6 years, 1 month ago (2014-10-29 22:55:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686883002/40001
6 years, 1 month ago (2014-10-29 23:53:29 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-10-30 00:39:50 UTC) #11
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 00:40:42 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c6ac2609dd032e468440cd4f7f86770b4cb9774d
Cr-Commit-Position: refs/heads/master@{#301994}

Powered by Google App Engine
This is Rietveld 408576698