build_wincrypt_test.c 924 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright 2022 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. * Simple buildtest to check for symbol collisions between wincrypt and
  11. * OpenSSL headers
  12. */
  13. #include <openssl/types.h>
  14. #ifdef _WIN32
  15. # ifndef WIN32_LEAN_AND_MEAN
  16. # define WIN32_LEAN_AND_MEAN
  17. # endif
  18. # include <windows.h>
  19. # include <wincrypt.h>
  20. # ifndef X509_NAME
  21. # ifndef PEDANTIC
  22. # warning "wincrypt.h no longer defining X509_NAME before OpenSSL headers"
  23. # endif
  24. # endif
  25. #endif
  26. #include <openssl/opensslconf.h>
  27. #ifndef OPENSSL_NO_STDIO
  28. # include <stdio.h>
  29. #endif
  30. #include <openssl/evp.h>
  31. #include <openssl/x509.h>
  32. #include <openssl/x509v3.h>
  33. int main(void)
  34. {
  35. return 0;
  36. }