From 8be8a95deaae1cdc9d767d67977e2d8f2203d62e Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Tue, 23 Apr 2019 11:50:28 +0100 Subject: [PATCH] Print peer CID from ssl_server2 --- programs/ssl/ssl_server2.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 33c0ffcd1..dff899f20 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -2876,7 +2876,16 @@ handshake: } 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 */