2
0

build_wincrypt_test.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. * 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. # ifdef _MSC_VER
  23. # pragma message("wincrypt.h no longer defining X509_NAME before OpenSSL headers")
  24. # else
  25. # warning "wincrypt.h no longer defining X509_NAME before OpenSSL headers"
  26. # endif
  27. # endif
  28. # endif
  29. #endif
  30. #include <openssl/opensslconf.h>
  31. #ifndef OPENSSL_NO_STDIO
  32. # include <stdio.h>
  33. #endif
  34. #include <openssl/evp.h>
  35. #include <openssl/x509.h>
  36. #include <openssl/x509v3.h>
  37. int main(void)
  38. {
  39. return 0;
  40. }