Print peer CID from ssl_client2

This commit is contained in:
Hanno Becker 2019-04-23 11:50:59 +01:00
parent 735c716e2a
commit 957dd921f1

View file

@ -2174,7 +2174,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 */