mbedtls/programs/ssl
Hanno Becker a9766c2c23 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-02-26 14:38:09 +00:00
..
CMakeLists.txt Improve cmake inclusion of query_config.c when building apps 2019-02-07 10:38:22 +00:00
dtls_client.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
dtls_server.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
mini_client.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
query_config.c Merge remote-tracking branch 'origin/pr/2105' into development 2019-02-22 10:33:15 +00:00
ssl_client1.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ssl_client2.c ssl_client2: Extract peer CRT info from verification callback 2019-02-26 14:38:09 +00:00
ssl_fork_server.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ssl_mail_client.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ssl_pthread_server.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ssl_server.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ssl_server2.c Merge remote-tracking branch 'origin/pr/2105' into development 2019-02-22 10:33:15 +00:00