Normalize some error messages
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index 3409e2f..2cd0cce 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -1070,8 +1070,7 @@
if( ssl->out_msglen != olen )
{
- SSL_DEBUG_MSG( 1, ( "total encrypted length incorrect %d %d",
- ssl->out_msglen, olen ) );
+ SSL_DEBUG_MSG( 1, ( "should never happen" ) );
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
}
}
@@ -1146,8 +1145,7 @@
if( olen != enc_msglen )
{
- SSL_DEBUG_MSG( 1, ( "total encrypted length incorrect %d %d",
- enc_msglen, olen ) );
+ SSL_DEBUG_MSG( 1, ( "should never happen" ) );
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
}
@@ -1225,8 +1223,7 @@
if( enc_msglen != olen )
{
- SSL_DEBUG_MSG( 1, ( "total encrypted length incorrect %d %d",
- enc_msglen, olen ) );
+ SSL_DEBUG_MSG( 1, ( "should never happen" ) );
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
}
@@ -1308,7 +1305,7 @@
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 );
}
}
@@ -1372,8 +1369,7 @@
if( olen != dec_msglen )
{
- SSL_DEBUG_MSG( 1, ( "total decrypted length incorrect %d %d",
- dec_msglen, olen ) );
+ SSL_DEBUG_MSG( 1, ( "should never happen" ) );
return( POLARSSL_ERR_SSL_INTERNAL_ERROR );
}
}
@@ -1448,7 +1444,7 @@
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 );
}