1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib
Fabio Alessandrelli 94f3981bef mbedtls: wrapper: client: Force mbedTLS to attemp to verify cert
AG: unlike openssl, mbedtls does not load the system trust store.
So this change will make client tls operations that work OK on openssl fail on
mbedtls unless you provide the correct CA cert.

This allows lws to distinguish between untrusted CAs, hostname
mismatches, expired certificates.

NOTE: LCCSCF_ALLOW_SELFSIGNED actually allows for untrusted CAs, and
will also skip hostname verification. This is somewhat a limitiation of
the current lws verification process.

AG: improve error reporting up to the CLIENT_CONNECTION_ERROR argument
and add a note specific to mbedtls in the test client.  Adapt the test
client to note the CA requirement if built with mbedTLS.  Adapt the
minimal test clients to have the CAs available and use them if mbedTLS.
2018-04-06 10:38:03 +08:00
..
client mbedtls: wrapper: client: Force mbedTLS to attemp to verify cert 2018-04-06 10:38:03 +08:00
event-libs lws_set_timer_usecs: change to usec resolution 2018-04-06 10:38:03 +08:00
ext minimal-examples: add ws pmd example 2018-03-06 09:39:27 +08:00
http2 h2 ws: fixes against chrome 2018-04-06 10:38:02 +08:00
jws lws_snprintf 2018-03-12 09:28:42 +08:00
misc esp32: map basic auth to nvs 2018-02-24 08:14:17 +08:00
plat lws_set_timer_usecs: change to usec resolution 2018-04-06 10:38:03 +08:00
server udp 2018-04-06 10:38:03 +08:00
tls mbedtls: wrapper: client: Force mbedTLS to attemp to verify cert 2018-04-06 10:38:03 +08:00
alloc.c acme: adaptations through plat for esp32 2017-12-11 13:30:12 +08:00
context.c udp 2018-04-06 10:38:03 +08:00
handshake.c h2 ws: fixes against chrome 2018-04-06 10:38:02 +08:00
header.c minimal: dynamic http server 2018-04-06 10:38:03 +08:00
lextable-strings.h parser: add x-auth-token 2017-12-01 11:37:36 +08:00
lextable.h parser: add x-auth-token 2017-12-01 11:37:36 +08:00
libwebsockets.c udp 2018-04-06 10:38:03 +08:00
libwebsockets.h udp 2018-04-06 10:38:03 +08:00
minilex.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
output.c udp 2018-04-06 10:38:03 +08:00
pollfd.c h2 ws: fixes against chrome 2018-04-06 10:38:02 +08:00
private-libwebsockets.h mbedtls: wrapper: client: Force mbedTLS to attemp to verify cert 2018-04-06 10:38:03 +08:00
service.c lws_set_timer_usecs: change to usec resolution 2018-04-06 10:38:03 +08:00