1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib
Andy Green af26f0c765 lejp: correct return temp type to int
lejp_parse() return type is an int... but in the function, the temp
for it is a char.  This leads to badness that is currently worked
around by casting the return through a signed char type.

But that leads to more badness since if there's >127 bytes of buffer
left after the end of the JSON object, we misreport it.

Bite the bullet and fix the temp type, and fix up all the guys
who were working around it at the caller return casting to use the
resulting straight int.

If you are using this api, remove any casting you may have cut-
and-pasted like this

n = (int)(signed char)lejp_parse(...);

... to just be like this...

n = lejp_parse(...);
2020-05-11 15:17:14 +01:00
..
abstract cleaning 2020-01-05 22:17:58 +00:00
core context: if linux and fd_limit_per_thread set try to configure by setrlimit 2020-05-06 09:06:24 +01:00
core-net client: allow setting keep warm time 2020-05-06 09:06:24 +01:00
event-libs glib: osx: brew symlink workaround 2020-03-24 12:31:02 +00:00
jose lejp: correct return temp type to int 2020-05-11 15:17:14 +01:00
misc lejp: correct return temp type to int 2020-05-11 15:17:14 +01:00
plat context: if linux and fd_limit_per_thread set try to configure by setrlimit 2020-05-06 09:06:24 +01:00
roles lejp: correct return temp type to int 2020-05-11 15:17:14 +01:00
secure-streams lejp: correct return temp type to int 2020-05-11 15:17:14 +01:00
system ntpclient: add plat-specific init with env var LWS_NTP_SERVER able to set it on unix and windows 2020-04-25 15:11:21 +01:00
tls BoringSSL: provide X509_VERYFY_PARAM_Set1_host length 2020-04-30 05:20:29 +01:00
README.md cleaning 2020-01-05 22:17:58 +00:00

Library sources layout

Code that goes in the libwebsockets library itself lives down ./lib

Path Sources
lib/core Core lws code related to generic fd and wsi servicing and management
lib/core-net Core lws code that applies only if networking enabled
lib/event-libs Code containing optional event-lib specific adaptations
lib/jose JOSE / JWS / JWK / JWE implementations
lib/misc Code for various mostly optional miscellaneous features
lib/plat Platform-specific adaptation code
lib/roles Code for specific optional wsi roles, eg, http/1, h2, ws, raw, etc
lib/system Code for system-level features, eg, dhcpclient
lib/tls Code supporting the various TLS libraries