mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Add ssl_get_record_expansion()
This commit is contained in:
parent
e63582a166
commit
9b35f18f66
4 changed files with 56 additions and 0 deletions
|
|
@ -1099,6 +1099,11 @@ int main( int argc, char *argv[] )
|
|||
printf( " ok\n [ Protocol is %s ]\n [ Ciphersuite is %s ]\n",
|
||||
ssl_get_version( &ssl ), ssl_get_ciphersuite( &ssl ) );
|
||||
|
||||
if( ( ret = ssl_get_record_expansion( &ssl ) ) >= 0 )
|
||||
printf( " [ Record expansion is %d ]\n", ret );
|
||||
else
|
||||
printf( " [ Record expansion is unknown (compression) ]\n" );
|
||||
|
||||
#if defined(POLARSSL_SSL_ALPN)
|
||||
if( opt.alpn_string != NULL )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1704,6 +1704,11 @@ reset:
|
|||
ssl_get_version( &ssl ), ssl_get_ciphersuite( &ssl ) );
|
||||
}
|
||||
|
||||
if( ( ret = ssl_get_record_expansion( &ssl ) ) >= 0 )
|
||||
printf( " [ Record expansion is %d ]\n", ret );
|
||||
else
|
||||
printf( " [ Record expansion is unknown (compression) ]\n" );
|
||||
|
||||
#if defined(POLARSSL_SSL_ALPN)
|
||||
if( opt.alpn_string != NULL )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue