symhacks.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the OpenSSL license (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. #ifndef HEADER_SYMHACKS_H
  10. # define HEADER_SYMHACKS_H
  11. # include <openssl/e_os2.h>
  12. /* Case insensitive linking causes problems.... */
  13. # if defined(OPENSSL_SYS_VMS)
  14. # undef ERR_load_CRYPTO_strings
  15. # define ERR_load_CRYPTO_strings ERR_load_CRYPTOlib_strings
  16. # undef OCSP_crlID_new
  17. # define OCSP_crlID_new OCSP_crlID2_new
  18. # undef d2i_ECPARAMETERS
  19. # define d2i_ECPARAMETERS d2i_UC_ECPARAMETERS
  20. # undef i2d_ECPARAMETERS
  21. # define i2d_ECPARAMETERS i2d_UC_ECPARAMETERS
  22. # undef d2i_ECPKPARAMETERS
  23. # define d2i_ECPKPARAMETERS d2i_UC_ECPKPARAMETERS
  24. # undef i2d_ECPKPARAMETERS
  25. # define i2d_ECPKPARAMETERS i2d_UC_ECPKPARAMETERS
  26. /*
  27. * These functions do not seem to exist! However, I'm paranoid... Original
  28. * command in x509v3.h: These functions are being redefined in another
  29. * directory, and clash when the linker is case-insensitive, so let's hide
  30. * them a little, by giving them an extra 'o' at the beginning of the name...
  31. */
  32. # undef X509v3_cleanup_extensions
  33. # define X509v3_cleanup_extensions oX509v3_cleanup_extensions
  34. # undef X509v3_add_extension
  35. # define X509v3_add_extension oX509v3_add_extension
  36. # undef X509v3_add_netscape_extensions
  37. # define X509v3_add_netscape_extensions oX509v3_add_netscape_extensions
  38. # undef X509v3_add_standard_extensions
  39. # define X509v3_add_standard_extensions oX509v3_add_standard_extensions
  40. /* This one clashes with CMS_data_create */
  41. # undef cms_Data_create
  42. # define cms_Data_create priv_cms_Data_create
  43. # endif
  44. #endif /* ! defined HEADER_VMS_IDHACKS_H */