geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

89 lines
2.4 KiB

  1. #ifndef LIBSSH2_CONFIG_H
  2. #ifdef __VMS
  3. #define LIBSSH2_CONFIG_H
  4. /* VMS specific libssh2_config.h
  5. */
  6. #define ssize_t SSIZE_T
  7. typedef unsigned int uint32_t ;
  8. typedef unsigned int socklen_t; /* missing in headers on VMS */
  9. /* Have's */
  10. #define HAVE_UNISTD_H
  11. #define HAVE_STDLIB_H
  12. #define HAVE_INTTYPES_H
  13. #define HAVE_SYS_TIME_H
  14. #define HAVE_SELECT
  15. #define HAVE_UIO
  16. #define HAVE_SYS_SOCKET.H
  17. #define HAVE_NETINET_IN_H
  18. #define HAVE_ARPA_INET_H
  19. #define HAVE_GETTIMEOFDAY 1
  20. #define POSIX_C_SOURCE
  21. /* Enable the possibility of using tracing */
  22. #define LIBSSH2DEBUG 1
  23. /* For selection of proper block/unblock function in session.c */
  24. #define HAVE_FIONBIO
  25. #include <stropts.h>
  26. /* In VMS TCP/IP Services and some BSD variants SO_STATE retrieves
  27. * a bitmask revealing amongst others the blocking state of the
  28. * socket. On VMS the bits are undocumented, but SS_NBIO
  29. * works, I did not test the other bits. Below bitdefs are
  30. * from Berkely source socketvar.h at
  31. * http://ftp.fibranet.cat/UnixArchive/PDP-11/Trees/2.11BSD/sys/h/socketvar.h
  32. * Socket state bits.
  33. * #define SS_NOFDREF 0x001 no file table ref any more
  34. * #define SS_ISCONNECTED 0x002 socket connected to a peer
  35. * #define SS_ISCONNECTING 0x004 in process of connecting to peer
  36. * #define SS_ISDISCONNECTING 0x008 in process of disconnecting
  37. * #define SS_CANTSENDMORE 0x010 can't send more data to peer
  38. * #define SS_CANTRCVMORE 0x020 can't receive more data from peer
  39. * #define SS_RCVATMARK 0x040 at mark on input
  40. * #define SS_PRIV 0x080 privileged for broadcast, raw...
  41. * #define SS_NBIO 0x100 non-blocking ops
  42. * #define SS_ASYNC 0x200 async i/o notify
  43. *
  44. */
  45. #ifdef SO_STATE
  46. /* SO_STATE is defined in stropts.h by DECC
  47. * When running on Multinet, SO_STATE renders a protocol
  48. * not started error. Functionally this has no impact,
  49. * apart from libssh2 not being able to restore the socket
  50. * to the proper blocking/non-blocking state.
  51. */
  52. #define SS_NBIO 0x100
  53. #endif
  54. /* Use OpenSSL */
  55. #define LIBSSH2_OPENSSL 1
  56. /* Compile in zlib support. We link against gnv$libzshr, as available
  57. * from https://sourceforge.net/projects/vms-ports/files/.
  58. */
  59. #define LIBSSH2_HAVE_ZLIB
  60. /* Enable newer diffie-hellman-group-exchange-sha1 syntax */
  61. #define LIBSSH2_DH_GEX_NEW 1
  62. #endif /* __VMS */
  63. #endif /* LIBSSH2_CONFIG_H */