1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

- Added ssl_get_peer_cert() to SSL API

This commit is contained in:
Paul Bakker
2012-10-30 07:51:03 +00:00
parent d2c167e9a8
commit b0550d90c9
5 changed files with 29 additions and 5 deletions

View File

@ -172,7 +172,7 @@ int do_handshake( ssl_context *ssl, struct options *opt )
printf( " . Peer certificate information ...\n" );
x509parse_cert_info( (char *) buf, sizeof( buf ) - 1, " ",
ssl->session->peer_cert );
ssl_get_peer_cert( &ssl ) );
printf( "%s\n", buf );
return( 0 );