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 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
..
mbedtls mbedtls: only free crt_parse when something came back 2020-07-09 15:30:34 +01:00
openssl content_info: make members conditional 2020-06-18 08:29:43 +01:00
CMakeLists.txt openssl3: migrate genhmac to EVP 2020-06-16 19:45:35 +01:00
lws-gencrypto-common.c jws: lws_gencrypto_jws_alg_to_definition needs sentinel 2020-03-21 14:43:53 +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: add read client .pem or .der from memory #1941 2020-06-06 13:09:31 +01:00
tls-client.c content_info: make members conditional 2020-06-18 08:29:43 +01:00
tls-network.c minimal-http-client-multi: add POST 2020-02-21 17:32:41 +00:00
tls-server.c sul: multiple timer domains 2020-06-02 08:37:10 +01:00
tls.c tls restriction: account for pipelining and add test 2020-03-01 08:14:43 +00:00