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

Unified Diff: chrome/browser/ui/cryptuiapi_shim.h

Issue 2913253003: Convert Windows to use X509CertificateBytes. (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/certificate_viewer_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cryptuiapi_shim.h
diff --git a/chrome/browser/ui/cryptuiapi_shim.h b/chrome/browser/ui/cryptuiapi_shim.h
new file mode 100644
index 0000000000000000000000000000000000000000..404edcb18db175e6a7fea608e7ab79c68cec76e0
--- /dev/null
+++ b/chrome/browser/ui/cryptuiapi_shim.h
@@ -0,0 +1,18 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_CRYPTUIAPI_SHIM_H_
+#define CHROME_BROWSER_UI_CRYPTUIAPI_SHIM_H_
+
+// cryptuiapi.h includes wincrypt.h which defines macros which conflict with
+// OpenSSL's types. This header includes cryptuiapi.h and then wincrypt_shim.h
+// which undefines the OpenSSL macros which conflict. Any Chromium headers
+// which want to include cryptuiapi should instead include this header.
+
+#include <windows.h>
+#include <cryptuiapi.h>
+
+#include "crypto/wincrypt_shim.h"
+
+#endif // CHROME_BROWSER_UI_CRYPTUIAPI_SHIM_H_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/certificate_viewer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698