From f15da890fb0ed23fd25af8f1d46e4834e76fb3fe Mon Sep 17 00:00:00 2001 From: Joe Subbiani Date: Tue, 3 Aug 2021 16:10:38 +0100 Subject: [PATCH] Replace remaining MBEDTLS_CHAR with MBEDTLS_BYTE Signed-off-by: Joe Subbiani --- library/ssl_srv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ssl_srv.c b/library/ssl_srv.c index 8e5c04765..0db8b6bfe 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c @@ -3875,8 +3875,8 @@ static int ssl_decrypt_encrypted_pms( mbedtls_ssl_context *ssl, MBEDTLS_SSL_DEBUG_MSG( 1, ( "bad client key exchange message" ) ); return( MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE ); } - if( *p++ != MBEDTLS_CHAR_1( len ) || - *p++ != MBEDTLS_CHAR_0( len ) ){ + if( *p++ != MBEDTLS_BYTE_1( len ) || + *p++ != MBEDTLS_BYTE_0( len ) ){ MBEDTLS_SSL_DEBUG_MSG( 1, ( "bad client key exchange message" ) ); return( MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE ); }