mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 10:15:40 +01:00
Allow stub implementation of the context_save for now
This commit is contained in:
parent
93c6ff2392
commit
1d1657f11c
@ -2925,8 +2925,11 @@ send_request:
|
||||
opt.serialize = 0;
|
||||
mbedtls_printf( " Serializing live connection..." );
|
||||
|
||||
if( ( ret = mbedtls_ssl_context_save( &ssl, NULL, 0, &len ) )
|
||||
!= MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL )
|
||||
ret = mbedtls_ssl_context_save( &ssl, NULL, 0, &len );
|
||||
|
||||
/* 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 "
|
||||
"-0x%x\n\n", -ret );
|
||||
|
@ -3936,8 +3936,11 @@ data_exchange:
|
||||
opt.serialize = 0;
|
||||
mbedtls_printf( " Serializing live connection..." );
|
||||
|
||||
if( ( ret = mbedtls_ssl_context_save( &ssl, NULL, 0, &len ) )
|
||||
!= MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL )
|
||||
ret = mbedtls_ssl_context_save( &ssl, NULL, 0, &len );
|
||||
|
||||
/* 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 "
|
||||
"-0x%x\n\n", -ret );
|
||||
|
Loading…
Reference in New Issue
Block a user