From c580a00e3c8b14fac4014b3a63abce50b2e8a20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 12 Feb 2014 10:15:30 +0100 Subject: [PATCH] Print protocol version in example cli/srv --- programs/ssl/ssl_client2.c | 4 ++-- programs/ssl/ssl_server2.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index e4a1426a3..e8917e13c 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -742,8 +742,8 @@ int main( int argc, char *argv[] ) } } - printf( " ok\n [ Ciphersuite is %s ]\n", - ssl_get_ciphersuite( &ssl ) ); + printf( " ok\n [ Protocol is %s ]\n [ Ciphersuite is %s ]\n", + ssl_get_version( &ssl ), ssl_get_ciphersuite( &ssl ) ); if( opt.reconnect != 0 ) { diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 7233dff45..c916b8ba0 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -808,8 +808,8 @@ reset: } } - printf( " ok\n [ Ciphersuite is %s ]\n", - ssl_get_ciphersuite( &ssl ) ); + printf( " ok\n [ Protocol is %s ]\n [ Ciphersuite is %s ]\n", + ssl_get_version( &ssl ), ssl_get_ciphersuite( &ssl ) ); #if defined(POLARSSL_X509_CRT_PARSE_C) /*