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
3 // found in the LICENSE file.
5 #ifndef NET_CRYPTO_WINCRYPT_SHIM_H_
6 #define NET_CRYPTO_WINCRYPT_SHIM_H_
8 // wincrypt.h defines macros which conflict with OpenSSL's types. This header
9 // includes wincrypt and undefines the OpenSSL macros which conflict. Any
10 // Chromium headers which include wincrypt should instead include this header.
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).aspx
18 #undef X509_EXTENSIONS
21 #define WINCRYPT_X509_CERT_PAIR ((LPCSTR) 53)
22 #define WINCRYPT_X509_EXTENSIONS ((LPCSTR) 5)
23 #define WINCRYPT_X509_NAME ((LPCSTR) 7)
25 #endif // NET_CRYPTO_WINCRYPT_SHIM_H_