1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/test-apps
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
..
android align private LWS_NO_EXTENSIONS to be same as public LWS_WITHOUT_EXTENSIONS 2018-04-06 10:38:03 +08:00
private clean up top level of project 2017-09-27 08:24:05 +08:00
.gitignore clean up top level of project 2017-09-27 08:24:05 +08:00
attack.sh attack.sh fixes 2018-01-14 11:32:45 +08:00
candide.zip clean up top level of project 2017-09-27 08:24:05 +08:00
favicon.ico clean up top level of project 2017-09-27 08:24:05 +08:00
fuzxy.c lws_snprintf 2018-03-12 09:28:42 +08:00
http2.png wss-over-h2: show feedback in test page if active 2018-04-06 10:38:03 +08:00
leaf.jpg clean up top level of project 2017-09-27 08:24:05 +08:00
libwebsockets-test-server.service clean up top level of project 2017-09-27 08:24:05 +08:00
libwebsockets.org-logo.png clean up top level of project 2017-09-27 08:24:05 +08:00
lws-cgi-test.sh http2: make usable 2017-10-16 17:13:49 +08:00
lws-common.js http2: make usable 2017-10-16 17:13:49 +08:00
lws-ssh-test-keys Plugins: add ssh-base ssh server plugin 2017-10-16 16:59:57 +08:00
lws-ssh-test-keys.pub Plugins: add ssh-base ssh server plugin 2017-10-16 16:59:57 +08:00
test-client.c mbedtls: wrapper: client: Force mbedTLS to attemp to verify cert 2018-04-06 10:38:03 +08:00
test-echo.c align private LWS_NO_EXTENSIONS to be same as public LWS_WITHOUT_EXTENSIONS 2018-04-06 10:38:03 +08:00
test-fraggle.c lws_snprintf 2018-03-12 09:28:42 +08:00
test-lejp.c lejp: fix float 2018-01-04 10:28:06 +08:00
test-ping.c lws_snprintf 2018-03-12 09:28:42 +08:00
test-server-dumb-increment.c lws_set_timer_usecs: change to usec resolution 2018-04-06 10:38:03 +08:00
test-server-http.c lws_snprintf 2018-03-12 09:28:42 +08:00
test-server-libev.c lws_snprintf 2018-03-12 09:28:42 +08:00
test-server-libevent.c lws_snprintf 2018-03-12 09:28:42 +08:00
test-server-libuv.c wss-over-h2: show feedback in test page if active 2018-04-06 10:38:03 +08:00
test-server-pthreads.c lws_snprintf 2018-03-12 09:28:42 +08:00
test-server-v2.0.c lws_snprintf 2018-03-12 09:28:42 +08:00
test-server.c unixskt: add test server support and cleanup inode on exit 2018-04-06 10:38:03 +08:00
test-server.h mingw: fixes 2017-12-01 11:37:33 +08:00
test-sshd.c win32: remove snprintf mangling 2018-03-09 08:49:59 +08:00
test.html wss-over-h2: show feedback in test page if active 2018-04-06 10:38:03 +08:00
wss-over-h2.png wss-over-h2: show feedback in test page if active 2018-04-06 10:38:03 +08:00