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

Side by Side Diff: crypto/wincrypt_shim.h

Issue 2095523002: Make //crypto factories return std::unique_ptr<>s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I'm blind Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « crypto/symmetric_key_unittest.cc ('k') | extensions/browser/content_verify_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_CRYPTO_WINCRYPT_SHIM_H_ 5 #ifndef NET_CRYPTO_WINCRYPT_SHIM_H_
6 #define NET_CRYPTO_WINCRYPT_SHIM_H_ 6 #define NET_CRYPTO_WINCRYPT_SHIM_H_
7 7
8 // wincrypt.h defines macros which conflict with OpenSSL's types. This header 8 // wincrypt.h defines macros which conflict with OpenSSL's types. This header
9 // includes wincrypt and undefines the OpenSSL macros which conflict. Any 9 // includes wincrypt and undefines the OpenSSL macros which conflict. Any
10 // Chromium headers which include wincrypt should instead include this header. 10 // Chromium headers which include wincrypt should instead include this header.
11 11
12 #include <windows.h> 12 #include <windows.h>
13 #include <wincrypt.h> 13 #include <wincrypt.h>
14 14
15 // Undefine the macros which conflict with OpenSSL and define replacements. See 15 // Undefine the macros which conflict with OpenSSL and define replacements. See
16 // http://msdn.microsoft.com/en-us/library/windows/desktop/aa378145(v=vs.85).asp x 16 // http://msdn.microsoft.com/en-us/library/windows/desktop/aa378145(v=vs.85).asp x
17 #undef X509_CERT_PAIR 17 #undef X509_CERT_PAIR
18 #undef X509_EXTENSIONS 18 #undef X509_EXTENSIONS
19 #undef X509_NAME 19 #undef X509_NAME
20 20
21 #define WINCRYPT_X509_CERT_PAIR ((LPCSTR) 53) 21 #define WINCRYPT_X509_CERT_PAIR ((LPCSTR) 53)
22 #define WINCRYPT_X509_EXTENSIONS ((LPCSTR) 5) 22 #define WINCRYPT_X509_EXTENSIONS ((LPCSTR) 5)
23 #define WINCRYPT_X509_NAME ((LPCSTR) 7) 23 #define WINCRYPT_X509_NAME ((LPCSTR) 7)
24 24
25 #endif // NET_CRYPTO_WINCRYPT_SHIM_H_ 25 #endif // NET_CRYPTO_WINCRYPT_SHIM_H_
OLDNEW
« no previous file with comments | « crypto/symmetric_key_unittest.cc ('k') | extensions/browser/content_verify_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698