From cb0d212c973f3bcd34fd55e1a302e2686706fcd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 22 Jul 2015 11:52:11 +0200 Subject: [PATCH] Fix level of some debug messages --- library/ssl_srv.c | 4 ++-- library/ssl_tls.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/library/ssl_srv.c b/library/ssl_srv.c index 005f83cb6..e69091c3c 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c @@ -1643,11 +1643,11 @@ read_record_header: if( p[0] == (unsigned char)( ( MBEDTLS_SSL_FALLBACK_SCSV_VALUE >> 8 ) & 0xff ) && p[1] == (unsigned char)( ( MBEDTLS_SSL_FALLBACK_SCSV_VALUE ) & 0xff ) ) { - MBEDTLS_SSL_DEBUG_MSG( 0, ( "received FALLBACK_SCSV" ) ); + MBEDTLS_SSL_DEBUG_MSG( 2, ( "received FALLBACK_SCSV" ) ); if( ssl->minor_ver < ssl->conf->max_minor_ver ) { - MBEDTLS_SSL_DEBUG_MSG( 0, ( "inapropriate fallback" ) ); + MBEDTLS_SSL_DEBUG_MSG( 1, ( "inapropriate fallback" ) ); mbedtls_ssl_send_alert_message( ssl, MBEDTLS_SSL_ALERT_LEVEL_FATAL, MBEDTLS_SSL_ALERT_MSG_INAPROPRIATE_FALLBACK ); diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 998f77b39..1397fb75e 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -2172,7 +2172,7 @@ static int ssl_resend_hello_request( mbedtls_ssl_context *ssl ) if( ++ssl->renego_records_seen > doublings ) { - MBEDTLS_SSL_DEBUG_MSG( 0, ( "no longer retransmitting hello request" ) ); + MBEDTLS_SSL_DEBUG_MSG( 2, ( "no longer retransmitting hello request" ) ); return( 0 ); } } @@ -5838,7 +5838,7 @@ int mbedtls_ssl_get_record_expansion( const mbedtls_ssl_context *ssl ) break; default: - MBEDTLS_SSL_DEBUG_MSG( 0, ( "should never happen" ) ); + MBEDTLS_SSL_DEBUG_MSG( 1, ( "should never happen" ) ); return( MBEDTLS_ERR_SSL_INTERNAL_ERROR ); } @@ -6055,7 +6055,7 @@ static int ssl_check_ctr_renegotiate( mbedtls_ssl_context *ssl ) return( 0 ); } - MBEDTLS_SSL_DEBUG_MSG( 0, ( "record counter limit reached: renegotiate" ) ); + MBEDTLS_SSL_DEBUG_MSG( 1, ( "record counter limit reached: renegotiate" ) ); return( mbedtls_ssl_renegotiate( ssl ) ); } #endif /* MBEDTLS_SSL_RENEGOTIATION */