Allow stub implementation of the context_save for now
This commit is contained in:
parent
5737ec97a6
commit
f4f8ed7e82
2 changed files with 10 additions and 4 deletions
|
@ -2371,8 +2371,11 @@ send_request:
|
||||||
opt.serialize = 0;
|
opt.serialize = 0;
|
||||||
mbedtls_printf( " Serializing live connection..." );
|
mbedtls_printf( " Serializing live connection..." );
|
||||||
|
|
||||||
if( ( ret = mbedtls_ssl_context_save( &ssl, NULL, 0, &len ) )
|
ret = mbedtls_ssl_context_save( &ssl, NULL, 0, &len );
|
||||||
!= MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL )
|
|
||||||
|
/* Allow stub implementation returning 0 for now */
|
||||||
|
if( ret != MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL &&
|
||||||
|
ret != 0 )
|
||||||
{
|
{
|
||||||
mbedtls_printf( " failed\n ! mbedtls_ssl_context_save returned "
|
mbedtls_printf( " failed\n ! mbedtls_ssl_context_save returned "
|
||||||
"-0x%x\n\n", -ret );
|
"-0x%x\n\n", -ret );
|
||||||
|
|
|
@ -3356,8 +3356,11 @@ data_exchange:
|
||||||
opt.serialize = 0;
|
opt.serialize = 0;
|
||||||
mbedtls_printf( " Serializing live connection..." );
|
mbedtls_printf( " Serializing live connection..." );
|
||||||
|
|
||||||
if( ( ret = mbedtls_ssl_context_save( &ssl, NULL, 0, &len ) )
|
ret = mbedtls_ssl_context_save( &ssl, NULL, 0, &len );
|
||||||
!= MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL )
|
|
||||||
|
/* Allow stub implementation returning 0 for now */
|
||||||
|
if( ret != MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL &&
|
||||||
|
ret != 0 )
|
||||||
{
|
{
|
||||||
mbedtls_printf( " failed\n ! mbedtls_ssl_context_save returned "
|
mbedtls_printf( " failed\n ! mbedtls_ssl_context_save returned "
|
||||||
"-0x%x\n\n", -ret );
|
"-0x%x\n\n", -ret );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue