mbedtls/programs/ssl
Hanno Becker 975c463b3f ssl_client2: Extract peer CRT info from verification callback
So far, `ssl_client2` printed the CRT info for the peer's CRT
by requesting the latter through `mbedtls_ssl_get_peer_cert()`
at the end of the handshake, and printing it via
`mbedtls_x509_crt_info()`. When `MBEDTLS_SSL_KEEP_PEER_CERTIFICATE`
is disabled, this does no longer work because the peer's CRT
isn't stored beyond the handshake.

This makes some tests in `ssl-opt.sh` fail which rely on the CRT
info output for the peer certificate.

This commit modifies `ssl_client2` to extract the peer CRT info
from the verification callback, which is always called at a time
when the peer's CRT is available. This way, the peer's CRT info
is still printed if `MBEDTLS_SSL_KEEP_PEER_CERTIFICATE` is disabled.
2019-06-19 14:59:37 +01:00
..
CMakeLists.txt Improve cmake inclusion of query_config.c when building apps 2019-02-07 10:32:31 +00:00
dtls_client.c Rename MBEDTLS_X509_INFO to !MBEDTLS_X509_REMOVE_INFO 2019-06-18 11:05:44 +01:00
dtls_server.c Fix const-ness in mbedtls_param_failed() 2018-12-11 12:28:56 +01:00
mini_client.c Fix const-ness in mbedtls_param_failed() 2018-12-11 12:28:56 +01:00
query_config.c Merge remote-tracking branch 'origin/pr/591' into baremetal 2019-06-18 17:36:45 +01:00
ssl_client1.c Merge remote-tracking branch 'origin/pr/591' into baremetal 2019-06-18 17:36:45 +01:00
ssl_client2.c ssl_client2: Extract peer CRT info from verification callback 2019-06-19 14:59:37 +01:00
ssl_fork_server.c Use negated option for controlling TLS support. 2019-06-17 15:26:34 +02:00
ssl_mail_client.c Merge remote-tracking branch 'origin/pr/591' into baremetal 2019-06-18 17:36:45 +01:00
ssl_pthread_server.c Use negated option for controlling TLS support. 2019-06-17 15:26:34 +02:00
ssl_server2.c Merge remote-tracking branch 'origin/pr/591' into baremetal 2019-06-18 17:36:45 +01:00
ssl_server.c Use negated option for controlling TLS support. 2019-06-17 15:26:34 +02:00