]> git.ipfire.org Git - thirdparty/curl.git/commit
mbedtls: add more informative logging
authorJustin Maggard <jmaggard@arlo.com>
Mon, 5 Aug 2024 17:21:35 +0000 (10:21 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 17 Aug 2024 08:57:45 +0000 (10:57 +0200)
commit88cae145509c7008cb43d163c92df85561aa4853
treeefb291228d04c053af7a08c54aeef6ac0eaa9623
parent2c4d04c4d3ff533b70a41c801c16abb6c7d46711
mbedtls: add more informative logging

After TLS handshare, indicate which TLS version was negotiated in
addition to the cipher in the handshake completed log message.

Also use the verify callback for certificate logging and collection.
This allows things to work even when MBEDTLS_SSL_KEEP_PEER_CERTIFICATE
is disabled in the mbedtls library.

And lastly, catch certificate validation errors later so we can give the
user more informative error messages that indicate what the failure was
from certificate validation.

Tested on both current LTS versions (2.28 and 3.6).

Closes #14444
lib/vtls/mbedtls.c