1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib/tls
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
..
mbedtls mbedtls: only free crt_parse when something came back 2020-07-09 14:11:46 +01:00
openssl clean: use lws_intptr_t where needed 2020-06-03 06:49:45 +01:00
lws-gencrypto-common.c jws: lws_gencrypto_jws_alg_to_definition needs sentinel 2020-03-21 07:01:58 +00:00
lws-genec-common.c windows: clean type warnings 2020-01-11 14:04:50 +00:00
private-lib-tls.h tls: apply restriction if any also to client connections 2020-01-15 16:32:48 +00:00
private-network.h tls: apply restriction if any also to client connections 2020-01-15 16:32:48 +00:00
tls-client.c cleaning 2020-01-05 22:17:58 +00:00
tls-network.c minimal-http-client-multi: add POST 2020-02-21 17:32:41 +00:00
tls-server.c fallback: dont check after first ssl accept attempt 2020-03-06 10:18:43 +00:00
tls.c tls restriction: account for pipelining and add test 2020-03-01 08:14:43 +00:00