diff options
author | davidben <davidben@chromium.org> | 2014-10-29 17:39:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-30 00:40:05 +0000 |
commit | c6ac2609dd032e468440cd4f7f86770b4cb9774d (patch) | |
tree | 629420f416f2b4c183a5aa3048b040b5919c7ffc /net/cert/cert_database_win.cc | |
parent | 6fdf39c8fcf627270840b321cf329d53ab7261d1 (diff) | |
download | chromium_src-c6ac2609dd032e468440cd4f7f86770b4cb9774d.zip chromium_src-c6ac2609dd032e468440cd4f7f86770b4cb9774d.tar.gz chromium_src-c6ac2609dd032e468440cd4f7f86770b4cb9774d.tar.bz2 |
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
Review URL: https://codereview.chromium.org/686883002
Cr-Commit-Position: refs/heads/master@{#301994}
Diffstat (limited to 'net/cert/cert_database_win.cc')
-rw-r--r-- | net/cert/cert_database_win.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/cert/cert_database_win.cc b/net/cert/cert_database_win.cc index 9bf378c..fae3cbf 100644 --- a/net/cert/cert_database_win.cc +++ b/net/cert/cert_database_win.cc @@ -5,13 +5,14 @@ #include "net/cert/cert_database.h" #include <windows.h> -#include <wincrypt.h> -#pragma comment(lib, "crypt32.lib") #include "base/observer_list_threadsafe.h" +#include "crypto/wincrypt_shim.h" #include "net/base/net_errors.h" #include "net/cert/x509_certificate.h" +#pragma comment(lib, "crypt32.lib") + namespace net { CertDatabase::CertDatabase() |