mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-01 21:14:14 +01:00
Normalize some error messages
This commit is contained in:
parent
d6917f0eb3
commit
7792198a46
@ -1070,8 +1070,7 @@ static int ssl_encrypt_buf( ssl_context *ssl )
|
|||||||
|
|
||||||
if( ssl->out_msglen != olen )
|
if( ssl->out_msglen != olen )
|
||||||
{
|
{
|
||||||
SSL_DEBUG_MSG( 1, ( "total encrypted length incorrect %d %d",
|
SSL_DEBUG_MSG( 1, ( "should never happen" ) );
|
||||||
ssl->out_msglen, olen ) );
|
|
||||||
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
|
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1146,8 +1145,7 @@ static int ssl_encrypt_buf( ssl_context *ssl )
|
|||||||
|
|
||||||
if( olen != enc_msglen )
|
if( olen != enc_msglen )
|
||||||
{
|
{
|
||||||
SSL_DEBUG_MSG( 1, ( "total encrypted length incorrect %d %d",
|
SSL_DEBUG_MSG( 1, ( "should never happen" ) );
|
||||||
enc_msglen, olen ) );
|
|
||||||
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
|
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1225,8 +1223,7 @@ static int ssl_encrypt_buf( ssl_context *ssl )
|
|||||||
|
|
||||||
if( enc_msglen != olen )
|
if( enc_msglen != olen )
|
||||||
{
|
{
|
||||||
SSL_DEBUG_MSG( 1, ( "total encrypted length incorrect %d %d",
|
SSL_DEBUG_MSG( 1, ( "should never happen" ) );
|
||||||
enc_msglen, olen ) );
|
|
||||||
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
|
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1308,7 +1305,7 @@ static int ssl_decrypt_buf( ssl_context *ssl )
|
|||||||
|
|
||||||
if( ssl->in_msglen != olen )
|
if( ssl->in_msglen != olen )
|
||||||
{
|
{
|
||||||
SSL_DEBUG_MSG( 1, ( "total encrypted length incorrect" ) );
|
SSL_DEBUG_MSG( 1, ( "should never happen" ) );
|
||||||
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
|
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1372,8 +1369,7 @@ static int ssl_decrypt_buf( ssl_context *ssl )
|
|||||||
|
|
||||||
if( olen != dec_msglen )
|
if( olen != dec_msglen )
|
||||||
{
|
{
|
||||||
SSL_DEBUG_MSG( 1, ( "total decrypted length incorrect %d %d",
|
SSL_DEBUG_MSG( 1, ( "should never happen" ) );
|
||||||
dec_msglen, olen ) );
|
|
||||||
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
|
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1448,7 +1444,7 @@ static int ssl_decrypt_buf( ssl_context *ssl )
|
|||||||
|
|
||||||
if( dec_msglen != olen )
|
if( dec_msglen != olen )
|
||||||
{
|
{
|
||||||
SSL_DEBUG_MSG( 1, ( "total encrypted length incorrect" ) );
|
SSL_DEBUG_MSG( 1, ( "should never happen" ) );
|
||||||
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
|
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user