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 6b3221ffc1 mbedtls: only free crt_parse when something came back
Mbedtls mbedtls_x509_crt_parse() returns 0 for success which is good.
But it has a complicated idea about what to return on fail... if it
couldn't make even one cert from the data, then it returns a negative
return indicating the parsing problem and there is nothing to free.

If it managed to parse at least one cert, instead it retuns a positive
number indicating the number of certs it didn't parse successfully,
and there is something to free.

Adapt the code to understand this quirk.
2020-07-09 15:30:34 +01:00
..
abstract cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
core lws_netdev: use lws_settings 2020-07-07 15:23:19 +01:00
core-net lws_netdev: use lws_settings 2020-07-07 15:23:19 +01:00
drivers lws_netdev: use lws_settings 2020-07-07 15:23:19 +01:00
event-libs glib: stop leaking idle and hrtimer source 2020-07-07 11:28:28 +01:00
jose cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
misc lws_netdev: use lws_settings 2020-07-07 15:23:19 +01:00
plat lws_netdev: use lws_settings 2020-07-07 15:23:19 +01:00
roles coverity: force amount to 0 before read call 2020-07-08 18:27:47 +01:00
secure-streams ss: client: clear timeout when connection acknowledged 2020-07-08 19:20:03 +01:00
system ss: proxy: smd: use correct zombie vs message check 2020-07-08 19:47:55 +01:00
tls mbedtls: only free crt_parse when something came back 2020-07-09 15:30:34 +01:00
CMakeLists.txt drivers: initial generic gpio and i2c plus bitbang 2020-06-10 19:17:08 +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