gnv_conftest.c_first 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* File: GNV$CONFTEST.C_FIRST
  2. *
  3. * Copyright (C) John Malmberg
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  15. * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. *
  17. * SPDX-License-Identifier: ISC
  18. *
  19. */
  20. /* This is needed for Configure tests to get the correct exit status */
  21. void __posix_exit(int __status);
  22. #define exit(__p1) __posix_exit(__p1)
  23. /* Fake pass the test to find a standard ldap routine that we know is */
  24. /* present on VMS, but with the wrong case for the symbol */
  25. char ldap_url_parse(void) {return 0;}
  26. /* These are to pass the test that does not use headers */
  27. /* Because configure does an #undef which keeps us from using #define */
  28. /* char CRYPTO_add_lock(void) {return 0;} */
  29. char SSL_connect(void) {return 0;}
  30. char ENGINE_init(void) {return 0;}
  31. char RAND_status(void) {return 0;}
  32. /* char RAND_screen(void) {return 0;} In headers, but not present */
  33. char CRYPTO_cleanup_all_ex_data(void) {return 0;}
  34. char SSL_get_shutdown(void) {return 0;}
  35. char ENGINE_load_builtin_engines (void) {return 0;}
  36. /* And these are to pass the test that uses headers. */
  37. /* Because the HP OpenSSL transfer vectors are currently in Upper case only */
  38. #pragma message disable macroredef
  39. #define CRYPTO_add_lock CRYPTO_ADD_LOCK
  40. #define SSL_connect SSL_CONNECT
  41. #define ENGINE_init ENGINE_INIT
  42. #define RAND_status RAND_STATUS
  43. /* #define RAND_screen RAND_SCREEN */
  44. #define CRYPTO_cleanup_all_ex_data CRYPTO_CLEANUP_ALL_EX_DATA
  45. #define SSL_get_shutdown SSL_GET_SHUTDOWN
  46. #define ENGINE_load_builtin_engines ENGINE_LOAD_BUILTIN_ENGINES
  47. /* Can not use the #define macro to fix the case on CRYPTO_lock because */
  48. /* there is a macro CRYPTO_LOCK that is a number */
  49. /* After all the work to get configure to pass the CRYPTO_LOCK tests,
  50. * it turns out that VMS does not have the CRYPTO_LOCK symbol in the
  51. * transfer vector, even though it is in the header file.
  52. */