lws_config.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. /* lws_config.h Generated from lws_config.h.in */
  2. /* GODOT ADDITION */
  3. #ifndef DEBUG_ENABLED
  4. #define LWS_WITH_NO_LOGS
  5. #endif
  6. /* END GODOT ADDITION */
  7. #ifndef NDEBUG
  8. #ifndef _DEBUG
  9. #define _DEBUG
  10. #endif
  11. #endif
  12. #define LWS_INSTALL_DATADIR "/usr/local/share"
  13. #define LWS_ROLE_H1
  14. #define LWS_ROLE_WS
  15. #define LWS_ROLE_RAW
  16. /* #undef LWS_ROLE_H2 */
  17. /* #undef LWS_ROLE_CGI */
  18. /* Define to 1 to use wolfSSL/CyaSSL as a replacement for OpenSSL.
  19. * LWS_OPENSSL_SUPPORT needs to be set also for this to work. */
  20. /* #undef USE_WOLFSSL */
  21. /* Also define to 1 (in addition to USE_WOLFSSL) when using the
  22. (older) CyaSSL library */
  23. /* #undef USE_OLD_CYASSL */
  24. /* #undef LWS_WITH_BORINGSSL */
  25. #define LWS_WITH_MBEDTLS
  26. /* #undef LWS_WITH_POLARSSL */
  27. /* #undef LWS_WITH_ESP32 */
  28. /* #undef LWS_WITH_PLUGINS */
  29. /* #undef LWS_WITH_NO_LOGS */
  30. /* The Libwebsocket version */
  31. #define LWS_LIBRARY_VERSION "3.0.0"
  32. #define LWS_LIBRARY_VERSION_MAJOR 3
  33. #define LWS_LIBRARY_VERSION_MINOR 0
  34. #define LWS_LIBRARY_VERSION_PATCH 0
  35. /* LWS_LIBRARY_VERSION_NUMBER looks like 1005001 for e.g. version 1.5.1 */
  36. #define LWS_LIBRARY_VERSION_NUMBER (LWS_LIBRARY_VERSION_MAJOR*1000000)+(LWS_LIBRARY_VERSION_MINOR*1000)+LWS_LIBRARY_VERSION_PATCH
  37. /* The current git commit hash that we're building from */
  38. #define LWS_BUILD_HASH "v2.0.0-948-geaa935a8"
  39. /* Build with OpenSSL support ... alias of LWS_WITH_TLS for compatibility*/
  40. #define LWS_OPENSSL_SUPPORT
  41. #define LWS_WITH_TLS
  42. /* The client should load and trust CA root certs it finds in the OS */
  43. /* #undef LWS_SSL_CLIENT_USE_OS_CA_CERTS */
  44. /* Sets the path where the client certs should be installed. */
  45. /* #undef LWS_OPENSSL_CLIENT_CERTS "../share" */
  46. /* Turn off websocket extensions */
  47. #define LWS_WITHOUT_EXTENSIONS
  48. /* notice if client or server gone */
  49. /* #undef LWS_WITHOUT_SERVER */
  50. /* #undef LWS_WITHOUT_CLIENT */
  51. #define LWS_WITH_POLL
  52. /* Enable libev io loop */
  53. /* #undef LWS_WITH_LIBEV */
  54. /* Enable libuv io loop */
  55. /* #undef LWS_WITH_LIBUV */
  56. /* Enable libevent io loop */
  57. /* #undef LWS_WITH_LIBEVENT */
  58. /* Build with support for ipv6 */
  59. /* Everywhere, except in OpenBSD which does not support dual stacking */
  60. #if !defined(__OpenBSD__)
  61. #define LWS_WITH_IPV6
  62. #endif
  63. /* Build with support for UNIX domain socket */
  64. /* #undef LWS_WITH_UNIX_SOCK */
  65. /* Build with support for HTTP2 */
  66. /* #undef LWS_WITH_HTTP2 */
  67. /* Turn on latency measuring code */
  68. /* #undef LWS_LATENCY */
  69. /* Don't build the daemonizeation api */
  70. #define LWS_NO_DAEMONIZE
  71. /* Build without server support */
  72. /* #undef LWS_NO_SERVER */
  73. /* Build without client support */
  74. /* #undef LWS_NO_CLIENT */
  75. /* If we should compile with MinGW support */
  76. /* #undef LWS_MINGW_SUPPORT */
  77. /* Use the BSD getifaddrs that comes with libwebsocket, for uclibc support */
  78. /* #undef LWS_BUILTIN_GETIFADDRS */
  79. /* use SHA1() not internal libwebsockets_SHA1 */
  80. /* #undef LWS_SHA1_USE_OPENSSL_NAME */
  81. /* SSL server using ECDH certificate */
  82. /* #undef LWS_SSL_SERVER_WITH_ECDH_CERT */
  83. /* #undef LWS_HAVE_SSL_CTX_set1_param */
  84. #define LWS_HAVE_X509_VERIFY_PARAM_set1_host
  85. /* #undef LWS_HAVE_RSA_SET0_KEY */
  86. /* #undef LWS_HAVE_X509_get_key_usage */
  87. /* #undef LWS_HAVE_SSL_CTX_get0_certificate */
  88. /* #undef LWS_HAVE_UV_VERSION_H */
  89. /* #undef LWS_HAVE_PTHREAD_H */
  90. /* CGI apis */
  91. /* #undef LWS_WITH_CGI */
  92. /* whether the Openssl is recent enough, and / or built with, ecdh */
  93. /* #undef LWS_HAVE_OPENSSL_ECDH_H */
  94. /* HTTP Proxy support */
  95. /* #undef LWS_WITH_HTTP_PROXY */
  96. /* HTTP Ranges support */
  97. /* #undef LWS_WITH_RANGES */
  98. /* Http access log support */
  99. /* #undef LWS_WITH_ACCESS_LOG */
  100. /* #undef LWS_WITH_SERVER_STATUS */
  101. /* #undef LWS_WITH_STATEFUL_URLDECODE */
  102. /* #undef LWS_WITH_PEER_LIMITS */
  103. /* Maximum supported service threads */
  104. #define LWS_MAX_SMP 1
  105. /* Lightweight JSON Parser */
  106. /* #undef LWS_WITH_LEJP */
  107. /* SMTP */
  108. /* #undef LWS_WITH_SMTP */
  109. /* OPTEE */
  110. /* #undef LWS_PLAT_OPTEE */
  111. /* ZIP FOPS */
  112. /* #undef LWS_WITH_ZIP_FOPS */
  113. #define LWS_HAVE_STDINT_H
  114. /* #undef LWS_AVOID_SIGPIPE_IGN */
  115. /* #undef LWS_FALLBACK_GETHOSTBYNAME */
  116. /* #undef LWS_WITH_STATS */
  117. /* #undef LWS_WITH_SOCKS5 */
  118. /* #undef LWS_HAVE_SYS_CAPABILITY_H */
  119. /* #undef LWS_HAVE_LIBCAP */
  120. #define LWS_HAVE_ATOLL
  121. /* #undef LWS_HAVE__ATOI64 */
  122. /* #undef LWS_HAVE__STAT32I64 */
  123. /* #undef LWS_WITH_JWS */
  124. /* #undef LWS_WITH_ACME */
  125. /* #undef LWS_WITH_SELFTESTS */
  126. #if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
  127. #define LWS_HAVE_MALLOC_H
  128. #endif
  129. #if !defined(__APPLE__) && !defined(__HAIKU__)
  130. #define LWS_HAVE_PIPE2
  131. #endif
  132. /* OpenSSL various APIs */
  133. #define LWS_HAVE_TLS_CLIENT_METHOD
  134. /* #undef LWS_HAVE_TLSV1_2_CLIENT_METHOD */
  135. /* #undef LWS_HAVE_SSL_SET_INFO_CALLBACK */
  136. /* #undef LWS_HAVE_SSL_EXTRA_CHAIN_CERTS */
  137. /* #undef LWS_HAVE_SSL_get0_alpn_selected */
  138. /* #undef LWS_HAVE_SSL_set_alpn_protos */
  139. #define LWS_HAS_INTPTR_T