mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
![]() This fixes clients being able to connect with a certicate that was not signed by the configured CA when SSL_VERIFY_FAIL_IF_NO_PEER_CERT is set. The issue only appeared when a client connects via IP address directly and not use a hostname. When the hostname was used to connect, the SNI 'callback lws_mbedtls_sni_cb' overwrote the invalid verfiy mode of MBEDTLS_SSL_VERIFY_OPTIONAL with MBEDTLS_SSL_VERIFY_REQUIRED by calling SSL_set_SSL_CTX. Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com> |
||
---|---|---|
.. | ||
wrapper | ||
CMakeLists.txt | ||
lws-genaes.c | ||
lws-gencrypto.c | ||
lws-genec.c | ||
lws-genhash.c | ||
lws-genrsa.c | ||
mbedtls-client.c | ||
mbedtls-extensions.c | ||
mbedtls-server.c | ||
mbedtls-session.c | ||
mbedtls-ssl.c | ||
mbedtls-tls.c | ||
mbedtls-x509.c | ||
private-lib-tls-mbedtls.h |