diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 20b67ebf5..db99ef6b4 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -1781,7 +1781,16 @@ int main( int argc, char *argv[] ) } else { + size_t idx=0; mbedtls_printf( "Use of Connection ID has been negotiated.\n" ); + mbedtls_printf( "Peer CID (length %u Bytes): ", + (unsigned) peer_cid_len ); + while( idx < peer_cid_len ) + { + mbedtls_printf( "%#02x ", peer_cid[ idx ] ); + idx++; + } + mbedtls_printf( "\n" ); } } #endif /* MBEDTLS_SSL_CID */