xref: /openssl/test/build_wincrypt_test.c (revision da1c088f)
1 /*
2  * Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License 2.0 (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9 
10 /*
11  * Simple buildtest to check for symbol collisions between wincrypt and
12  * OpenSSL headers
13  */
14 
15 #include <openssl/types.h>
16 
17 #ifdef _WIN32
18 # ifndef WIN32_LEAN_AND_MEAN
19 #  define WIN32_LEAN_AND_MEAN
20 # endif
21 # include <windows.h>
22 # include <wincrypt.h>
23 # ifndef X509_NAME
24 #  ifndef PEDANTIC
25 #    ifdef _MSC_VER
26 #      pragma message("wincrypt.h no longer defining X509_NAME before OpenSSL headers")
27 #    else
28 #      warning "wincrypt.h no longer defining X509_NAME before OpenSSL headers"
29 #    endif
30 #  endif
31 # endif
32 #endif
33 
34 #include <openssl/opensslconf.h>
35 #ifndef OPENSSL_NO_STDIO
36 # include <stdio.h>
37 #endif
38 
39 #include <openssl/evp.h>
40 #include <openssl/x509.h>
41 #include <openssl/x509v3.h>
42 
main(void)43 int main(void)
44 {
45     return 0;
46 }
47