Print protocol version in example cli/srv

This commit is contained in:
Manuel Pégourié-Gonnard 2014-02-12 10:15:30 +01:00
parent 6b1e207081
commit c580a00e3c
2 changed files with 4 additions and 4 deletions

View file

@ -742,8 +742,8 @@ int main( int argc, char *argv[] )
} }
} }
printf( " ok\n [ Ciphersuite is %s ]\n", printf( " ok\n [ Protocol is %s ]\n [ Ciphersuite is %s ]\n",
ssl_get_ciphersuite( &ssl ) ); ssl_get_version( &ssl ), ssl_get_ciphersuite( &ssl ) );
if( opt.reconnect != 0 ) if( opt.reconnect != 0 )
{ {

View file

@ -808,8 +808,8 @@ reset:
} }
} }
printf( " ok\n [ Ciphersuite is %s ]\n", printf( " ok\n [ Protocol is %s ]\n [ Ciphersuite is %s ]\n",
ssl_get_ciphersuite( &ssl ) ); ssl_get_version( &ssl ), ssl_get_ciphersuite( &ssl ) );
#if defined(POLARSSL_X509_CRT_PARSE_C) #if defined(POLARSSL_X509_CRT_PARSE_C)
/* /*