1 /* 2 * libwebsockets - small server side websockets and web server implementation 3 * 4 * Copyright (C) 2021-2022 Huawei Device Co., Ltd. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to 8 * deal in the Software without restriction, including without limitation the 9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 10 * sell copies of the Software, and to permit persons to whom the Software is 11 * furnished to do so, subject to the following conditions: 12 * 13 * The above copyright notice and this permission notice shall be included in 14 * all copies or substantial portions of the Software. 15 * 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 22 * IN THE SOFTWARE. 23 */ 24 25 #if OHOS_LIBWEBSOCKETS 26 27 /* lws_config.h Generated from lws_config.h.in */ 28 29 #ifndef NDEBUG 30 #ifndef _DEBUG 31 #define _DEBUG 32 #endif 33 #endif 34 35 #define LWS_INSTALL_DATADIR "/usr/local/share" 36 #define LWS_LIBRARY_VERSION_MAJOR 4 37 #define LWS_LIBRARY_VERSION_MINOR 0 38 #define LWS_LIBRARY_VERSION_PATCH 20 39 /* LWS_LIBRARY_VERSION_NUMBER looks like 1005001 for e.g. version 1.5.1 */ 40 #define LWS_LIBRARY_VERSION_NUMBER (LWS_LIBRARY_VERSION_MAJOR * 1000000) + \ 41 (LWS_LIBRARY_VERSION_MINOR * 1000) + \ 42 LWS_LIBRARY_VERSION_PATCH 43 #define LWS_MAX_SMP 1 44 45 /* #undef LWS_LIBRARY_VERSION_NUMBER */ 46 47 /* #undef LWS_AVOID_SIGPIPE_IGN */ 48 #define LWS_BUILD_HASH "b0f8105c" 49 /* #undef LWS_BUILTIN_GETIFADDRS */ 50 #define LWS_CLIENT_HTTP_PROXYING 51 /* #undef LWS_DETECTED_PLAT_IOS */ 52 /* #undef LWS_FALLBACK_GETHOSTBYNAME */ 53 #define LWS_HAS_INTPTR_T 54 #define LWS_HAS_GETOPT_LONG 55 /* #undef LWS_HAVE__ATOI64 */ 56 #define LWS_HAVE_ATOLL 57 #define LWS_HAVE_BN_bn2binpad 58 #define LWS_HAVE_CLOCK_GETTIME 59 #define LWS_HAVE_EC_POINT_get_affine_coordinates 60 #define LWS_HAVE_ECDSA_SIG_set0 61 #define LWS_HAVE_EVP_MD_CTX_free 62 #define LWS_HAVE_EVP_aes_128_wrap 63 #define LWS_HAVE_EVP_aes_128_cfb8 64 #define LWS_HAVE_EVP_aes_128_cfb128 65 #define LWS_HAVE_EVP_aes_192_cfb8 66 #define LWS_HAVE_EVP_aes_192_cfb128 67 #define LWS_HAVE_EVP_aes_256_cfb8 68 #define LWS_HAVE_EVP_aes_256_cfb128 69 #define LWS_HAVE_EVP_aes_128_xts 70 #define LWS_HAVE_EXECVPE 71 /* #undef LWS_HAVE_LIBCAP */ 72 #define LWS_HAVE_HMAC_CTX_new 73 #define LWS_HAVE_MALLOC_H 74 #define LWS_HAVE_MALLOC_TRIM 75 #define LWS_HAVE_MALLOC_USABLE_SIZE 76 /* #undef LWS_HAVE_mbedtls_net_init */ 77 /* #undef LWS_HAVE_mbedtls_ssl_conf_alpn_protocols */ 78 /* #undef LWS_HAVE_mbedtls_ssl_get_alpn_protocol */ 79 /* #undef LWS_HAVE_mbedtls_ssl_conf_sni */ 80 /* #undef LWS_HAVE_mbedtls_ssl_set_hs_ca_chain */ 81 /* #undef LWS_HAVE_mbedtls_ssl_set_hs_own_cert */ 82 /* #undef LWS_HAVE_mbedtls_ssl_set_hs_authmode */ 83 #define LWS_HAVE_MBEDTLS_NET_SOCKETS 84 /* #undef LWS_HAVE_NEW_UV_VERSION_H */ 85 #define LWS_HAVE_OPENSSL_ECDH_H 86 #define LWS_HAVE_PIPE2 87 #define LWS_HAVE_EVENTFD 88 #define LWS_HAVE_PTHREAD_H 89 #define LWS_HAVE_RSA_SET0_KEY 90 /* #undef LWS_HAVE_RSA_verify_pss_mgf1 */ 91 #define LWS_HAVE_SSL_CTX_get0_certificate 92 #define LWS_HAVE_SSL_CTX_set1_param 93 #define LWS_HAVE_SSL_CTX_set_ciphersuites 94 #define LWS_HAVE_SSL_EXTRA_CHAIN_CERTS 95 #define LWS_HAVE_SSL_get0_alpn_selected 96 #define LWS_HAVE_SSL_CTX_EVP_PKEY_new_raw_private_key 97 #define LWS_HAVE_SSL_set_alpn_protos 98 #define LWS_HAVE_SSL_SET_INFO_CALLBACK 99 /* #undef LWS_HAVE__STAT32I64 */ 100 #define LWS_HAVE_STDINT_H 101 /* #undef LWS_HAVE_SYS_CAPABILITY_H */ 102 #define LWS_HAVE_TLS_CLIENT_METHOD 103 #define LWS_HAVE_TLSV1_2_CLIENT_METHOD 104 /* #undef LWS_HAVE_UV_VERSION_H */ 105 #define LWS_HAVE_VFORK 106 #define LWS_HAVE_X509_get_key_usage 107 #define LWS_HAVE_X509_VERIFY_PARAM_set1_host 108 #define LWS_LIBRARY_VERSION "4.0.20" 109 #define LWS_LOGGING_BITFIELD_CLEAR 0 110 #define LWS_LOGGING_BITFIELD_SET 0 111 /* #undef LWS_MINGW_SUPPORT */ 112 /* #undef LWS_NO_CLIENT */ 113 #define LWS_NO_DAEMONIZE 114 #define LWS_OPENSSL_CLIENT_CERTS "../share" 115 #define LWS_OPENSSL_SUPPORT 116 /* #undef LWS_PLAT_OPTEE */ 117 #define LWS_PLAT_UNIX 118 /* #undef LWS_PLAT_FREERTOS */ 119 /* #undef LWS_ROLE_CGI */ 120 /* #undef LWS_ROLE_DBUS */ 121 #define LWS_ROLE_H1 122 #define LWS_ROLE_H2 123 #define LWS_ROLE_RAW 124 #define LWS_ROLE_RAW_FILE 125 /* #undef LWS_ROLE_RAW_PROXY */ 126 #define LWS_ROLE_WS 127 /* #undef LWS_ROLE_MQTT */ 128 /* #undef LWS_SHA1_USE_OPENSSL_NAME */ 129 #define LWS_SSL_CLIENT_USE_OS_CA_CERTS 130 /* #undef LWS_SSL_SERVER_WITH_ECDH_CERT */ 131 /* #undef LWS_WITH_ABSTRACT */ 132 /* #undef LWS_WITH_ACCESS_LOG */ 133 /* #undef LWS_WITH_ACME */ 134 /* #undef LWS_WITH_ALSA */ 135 /* #undef LWS_WITH_SYS_ASYNC_DNS */ 136 /* #undef LWS_WITH_BORINGSSL */ 137 /* #undef LWS_WITH_CGI */ 138 #define LWS_WITH_CUSTOM_HEADERS 139 /* #undef LWS_WITH_DEPRECATED_LWS_DLL */ 140 /* #undef LWS_WITH_DETAILED_LATENCY */ 141 #define LWS_WITH_DIR 142 /* #undef LWS_WITH_ESP32 */ 143 /* #undef LWS_HAVE_EVBACKEND_LINUXAIO */ 144 /* #undef LWS_HAVE_EVBACKEND_IOURING */ 145 /* #undef LWS_WITH_EXTERNAL_POLL */ 146 #define LWS_WITH_FILE_OPS 147 /* #undef LWS_WITH_FSMOUNT */ 148 /* #undef LWS_WITH_FTS */ 149 /* #undef LWS_WITH_GENCRYPTO */ 150 /* #undef LWS_WITH_GENERIC_SESSIONS */ 151 /* #undef LWS_WITH_GLIB */ 152 /* #undef LWS_WITH_GTK */ 153 #define LWS_WITH_HTTP2 154 #define LWS_WITH_HTTP_BASIC_AUTH 155 /* #undef LWS_WITH_HTTP_BROTLI */ 156 /* #undef LWS_WITH_HTTP_PROXY */ 157 /* #undef LWS_WITH_HTTP_STREAM_COMPRESSION */ 158 #define LWS_WITH_HTTP_UNCOMMON_HEADERS 159 /* #undef LWS_WITH_IPV6 */ 160 /* #undef LWS_WITH_JOSE */ 161 #define LWS_WITH_LEJP 162 /* #undef LWS_WITH_LIBEV */ 163 /* #undef LWS_WITH_LIBEVENT */ 164 /* #undef LWS_WITH_LIBUV */ 165 #define LWS_WITH_LWSAC 166 #define LWS_LOGS_TIMESTAMP 167 /* #undef LWS_WITH_MBEDTLS */ 168 /* #undef LWS_WITH_MINIZ */ 169 #define LWS_WITH_NETWORK 170 /* #undef LWS_WITH_NO_LOGS */ 171 #define LWS_WITH_CLIENT 172 #define LWS_WITHOUT_EXTENSIONS 173 #define LWS_WITH_SERVER 174 /* #undef LWS_WITH_SPAWN */ 175 /* #undef LWS_WITH_PEER_LIMITS */ 176 /* #undef LWS_WITH_PLUGINS */ 177 /* #undef LWS_WITH_POLARSSL */ 178 #define LWS_WITH_POLL 179 /* #undef LWS_WITH_RANGES */ 180 /* #undef LWS_WITH_SECURE_STREAMS */ 181 /* #undef LWS_WITH_SECURE_STREAMS_SYS_AUTH_API_AMAZON_COM */ 182 /* #undef LWS_WITH_SECURE_STREAMS_PROXY_API */ 183 /* #undef LWS_WITH_SELFTESTS */ 184 #define LWS_WITH_SEQUENCER 185 /* #undef LWS_WITH_SERVER_STATUS */ 186 /* #undef LWS_WITH_SMTP */ 187 /* #undef LWS_WITH_SOCKS5 */ 188 /* #undef LWS_WITH_STATEFUL_URLDECODE */ 189 /* #undef LWS_WITH_STATS */ 190 /* #undef LWS_WITH_STRUCT_SQLITE3 */ 191 /* #undef LWS_WITH_STRUCT_JSON */ 192 /* #undef LWS_WITH_SQLITE3 */ 193 /* #undef LWS_WITH_SYS_NTPCLIENT */ 194 /* #undef LWS_WITH_SYS_DHCP_CLIENT */ 195 /* #undef LWS_WITH_THREADPOOL */ 196 #define LWS_WITH_TLS 197 #define LWS_WITH_UDP 198 /* #undef LWS_WITH_UNIX_SOCK */ 199 /* #undef LWS_WITH_ZIP_FOPS */ 200 /* #undef USE_OLD_CYASSL */ 201 /* #undef USE_WOLFSSL */ 202 203 #else 204 205 /* lws_config.h Generated from lws_config.h.in */ 206 #ifndef NDEBUG 207 #ifndef _DEBUG 208 #define _DEBUG 209 #endif 210 #endif 211 212 #define LWS_INSTALL_DATADIR "/usr/local/share" 213 #define LWS_LIBRARY_VERSION_MAJOR 4 214 #define LWS_LIBRARY_VERSION_MINOR 0 215 #define LWS_LIBRARY_VERSION_PATCH 1 216 /* LWS_LIBRARY_VERSION_NUMBER looks like 1005001 for e.g. version 1.5.1 */ 217 #define LWS_LIBRARY_VERSION_NUMBER (LWS_LIBRARY_VERSION_MAJOR * 1000000) + \ 218 (LWS_LIBRARY_VERSION_MINOR * 1000) + \ 219 LWS_LIBRARY_VERSION_PATCH 220 #define LWS_MAX_SMP 1 221 222 /* #undef LWS_LIBRARY_VERSION_NUMBER */ 223 224 /* #undef LWS_AVOID_SIGPIPE_IGN */ 225 /* #undef LWS_BUILD_HASH */ 226 /* #undef LWS_BUILTIN_GETIFADDRS */ 227 #define LWS_CLIENT_HTTP_PROXYING 228 /* #undef LWS_FALLBACK_GETHOSTBYNAME */ 229 #define LWS_HAS_INTPTR_T 230 #define LWS_HAS_GETOPT_LONG 231 /* #undef LWS_HAVE__ATOI64 */ 232 #define LWS_HAVE_ATOLL 233 #define LWS_HAVE_BN_bn2binpad 234 #define LWS_HAVE_CLOCK_GETTIME 235 /* #undef LWS_HAVE_EC_POINT_get_affine_coordinates*/ 236 #define LWS_HAVE_ECDSA_SIG_set0 237 #define LWS_HAVE_EVP_MD_CTX_free 238 /* #undef LWS_HAVE_EVP_aes_128_wrap */ 239 /* #undef LWS_HAVE_EVP_aes_128_cfb8 */ 240 /* #undef LWS_HAVE_EVP_aes_128_cfb128 */ 241 /* #undef LWS_HAVE_EVP_aes_192_cfb8 */ 242 /* #undef LWS_HAVE_EVP_aes_192_cfb128 */ 243 /* #undef LWS_HAVE_EVP_aes_256_cfb8 */ 244 /* #undef LWS_HAVE_EVP_aes_256_cfb128 */ 245 /* #undef LWS_HAVE_EVP_aes_128_xts */ 246 #define LWS_HAVE_EXECVPE 247 248 /* #if !define(WIN32) && !define(_WIN32) */ 249 /* #define LWS_HAVE_LIBCAP */ 250 /* #define LWS_HAVE_EVENTFD */ 251 /* #define LWS_HAVE_SYS_CAPABILITY_H */ 252 /* #define LWS_HAVE_MALLOC_USABLE_SIZE */ 253 /* #define LWS_WITH_TLS */ 254 /* #endif */ 255 256 #define LWS_HAVE_HMAC_CTX_new 257 #define LWS_HAVE_MALLOC_H 258 #define LWS_HAVE_MALLOC_TRIM 259 /* #undef LWS_HAVE_mbedtls_net_init */ 260 /* #undef LWS_HAVE_mbedtls_ssl_conf_alpn_protocols */ 261 /* #undef LWS_HAVE_mbedtls_ssl_get_alpn_protocol */ 262 /* #undef LWS_HAVE_mbedtls_ssl_conf_sni */ 263 /* #undef LWS_HAVE_mbedtls_ssl_set_hs_ca_chain */ 264 /* #undef LWS_HAVE_mbedtls_ssl_set_hs_own_cert */ 265 /* #undef LWS_HAVE_mbedtls_ssl_set_hs_authmode */ 266 /* #undef LWS_HAVE_MBEDTLS_NET_SOCKETS */ 267 /* #undef LWS_HAVE_NEW_UV_VERSION_H */ 268 #define LWS_HAVE_OPENSSL_ECDH_H 269 /* #define LWS_HAVE_PIPE2 */ 270 #define LWS_HAVE_PTHREAD_H 271 #define LWS_HAVE_RSA_SET0_KEY 272 #define LWS_HAVE_RSA_verify_pss_mgf1 273 /* #undef LWS_HAVE_SSL_CTX_get0_certificate */ 274 /* #undef LWS_HAVE_SSL_CTX_set1_param */ 275 /* #undef LWS_HAVE_SSL_CTX_set_ciphersuites */ 276 /* #undef LWS_HAVE_SSL_EXTRA_CHAIN_CERTS */ 277 /* #undef LWS_HAVE_SSL_get0_alpn_selected */ 278 #define LWS_HAVE_SSL_CTX_EVP_PKEY_new_raw_private_key 279 /* #undef LWS_HAVE_SSL_set_alpn_protos */ 280 /* #undef LWS_HAVE_SSL_SET_INFO_CALLBACK */ 281 /* #undef LWS_HAVE__STAT32I64 */ 282 #define LWS_HAVE_STDINT_H 283 /* #undef LWS_HAVE_TLS_CLIENT_METHOD */ 284 /* #undef LWS_HAVE_TLSV1_2_CLIENT_METHOD */ 285 /* #undef LWS_HAVE_UV_VERSION_H */ 286 #define LWS_HAVE_VFORK 287 #define LWS_HAVE_X509_get_key_usage 288 #define LWS_HAVE_X509_VERIFY_PARAM_set1_host 289 #define LWS_LIBRARY_VERSION "4.0.1" 290 /* #undef LWS_MINGW_SUPPORT */ 291 /* #undef LWS_NO_CLIENT */ 292 #define LWS_NO_DAEMONIZE 293 #define LWS_OPENSSL_CLIENT_CERTS "../share" 294 #define LWS_OPENSSL_SUPPORT 295 /* #undef LWS_PLAT_OPTEE */ 296 #define LWS_PLAT_UNIX 297 /* #undef LWS_PLAT_FREERTOS */ 298 /* #undef LWS_ROLE_CGI */ 299 /* #undef LWS_ROLE_DBUS */ 300 #define LWS_ROLE_H1 301 #define LWS_ROLE_H2 302 #define LWS_ROLE_RAW 303 #define LWS_ROLE_RAW_FILE 304 /* #undef LWS_ROLE_RAW_PROXY */ 305 #define LWS_ROLE_WS 306 /* #undef LWS_ROLE_MQTT */ 307 /* #undef LWS_SHA1_USE_OPENSSL_NAME */ 308 #define LWS_SSL_CLIENT_USE_OS_CA_CERTS 309 /* #undef LWS_SSL_SERVER_WITH_ECDH_CERT */ 310 /* #undef LWS_WITH_ABSTRACT */ 311 /* #undef LWS_WITH_ACCESS_LOG */ 312 /* #undef LWS_WITH_ACME */ 313 /* #undef LWS_WITH_ALSA */ 314 /* #undef LWS_WITH_SYS_ASYNC_DNS */ 315 #define LWS_WITH_BORINGSSL 316 /* #undef LWS_WITH_CGI */ 317 #define LWS_WITH_CUSTOM_HEADERS 318 /* #undef LWS_WITH_DEPRECATED_LWS_DLL */ 319 /* #undef LWS_WITH_DETAILED_LATENCY */ 320 #define LWS_WITH_DIR 321 /* #undef LWS_WITH_ESP32 */ 322 /* #undef LWS_HAVE_EVBACKEND_LINUXAIO */ 323 /* #undef LWS_HAVE_EVBACKEND_IOURING */ 324 /* #undef LWS_WITH_EXTERNAL_POLL */ 325 #define LWS_WITH_FILE_OPS 326 /* #undef LWS_WITH_FSMOUNT */ 327 /* #undef LWS_WITH_FTS */ 328 /* #undef LWS_WITH_GENCRYPTO */ 329 /* #undef LWS_WITH_GENERIC_SESSIONS */ 330 /* #undef LWS_WITH_GLIB */ 331 /* #undef LWS_WITH_GTK */ 332 #define LWS_WITH_HTTP2 333 #define LWS_WITH_HTTP_BASIC_AUTH 334 /* #undef LWS_WITH_HTTP_BROTLI */ 335 /* #undef LWS_WITH_HTTP_PROXY */ 336 /* #undef LWS_WITH_HTTP_STREAM_COMPRESSION */ 337 #define LWS_WITH_HTTP_UNCOMMON_HEADERS 338 /* #undef LWS_WITH_IPV6 */ 339 /* #undef LWS_WITH_JOSE */ 340 #define LWS_WITH_LEJP 341 /* #undef LWS_WITH_LIBEV */ 342 /* #undef LWS_WITH_LIBEVENT */ 343 /* #undef LWS_WITH_LIBUV */ 344 #define LWS_WITH_LWSAC 345 #define LWS_LOGS_TIMESTAMP 346 /* #undef LWS_WITH_MBEDTLS */ 347 /* #undef LWS_WITH_MINIZ */ 348 #define LWS_WITH_NETWORK 349 /* #undef LWS_WITH_NO_LOGS */ 350 #define LWS_WITH_CLIENT 351 #define LWS_WITHOUT_EXTENSIONS 352 #define LWS_WITH_SERVER 353 /* #undef LWS_WITH_SPAWN */ 354 #undef LWS_WITH_PEER_LIMITS 355 /* #undef LWS_WITH_PLUGINS */ 356 /* #undef LWS_WITH_POLARSSL */ 357 #define LWS_WITH_POLL 358 /* #undef LWS_WITH_RANGES */ 359 /* #undef LWS_WITH_SECURE_STREAMS */ 360 /* #undef LWS_WITH_SECURE_STREAMS_SYS_AUTH_API_AMAZON_COM */ 361 /* #undef LWS_WITH_SECURE_STREAMS_PROXY_API */ 362 /* #undef LWS_WITH_SELFTESTS */ 363 #define LWS_WITH_SEQUENCER 364 /* #undef LWS_WITH_SERVER_STATUS */ 365 /* #undef LWS_WITH_SMTP */ 366 /* #undef LWS_WITH_SOCKS5 */ 367 /* #undef LWS_WITH_STATEFUL_URLDECODE */ 368 /* #undef LWS_WITH_STATS */ 369 /* #undef LWS_WITH_STRUCT_SQLITE3 */ 370 /* #undef LWS_WITH_STRUCT_JSON */ 371 /* #undef LWS_WITH_SQLITE3 */ 372 /* #undef LWS_WITH_SYS_NTPCLIENT */ 373 /* #undef LWS_WITH_SYS_DHCP_CLIENT */ 374 /* #undef LWS_WITH_THREADPOOL */ 375 #define LWS_WITH_UDP 376 /* #undef LWS_WITH_UNIX_SOCK */ 377 /* #undef LWS_WITH_ZIP_FOPS */ 378 /* #undef USE_OLD_CYASSL */ 379 /* #undef USE_WOLFSSL */ 380 #define LWS_WITH_SYS_STATE 381 382 #endif