1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/tls/mbedtls
Andy Green ec9e8ab892 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 14:11:46 +01:00
..
wrapper mbedtls: support older versions without net_sockets.h 2020-03-19 14:36:05 +00:00
lws-genaes.c Added missing PKCS#7 padding/unpadding from AES-CBC in JWE 2020-02-21 17:32:41 +00:00
lws-gencrypto.c private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
lws-genec.c cleaning 2020-01-05 22:17:58 +00:00
lws-genhash.c license: switch LGPLv2.1+SLE parts to MIT 2019-08-14 10:44:38 +01:00
lws-genrsa.c cleaning 2020-01-05 22:17:58 +00:00
mbedtls-client.c minimal-http-client-multi: add POST 2020-02-21 17:32:41 +00:00
mbedtls-server.c fallback: dont check after first ssl accept attempt 2020-03-06 10:18:43 +00:00
mbedtls-ssl.c tls restriction: account for pipelining and add test 2020-03-01 08:14:43 +00:00
mbedtls-tls.c private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
mbedtls-x509.c mbedtls: only free crt_parse when something came back 2020-07-09 14:11:46 +01:00
private-lib-tls-mbedtls.h private.h: rename to contain dir 2019-08-15 10:49:52 +01:00