Align code styles of indent and so on

Signed-off-by: XiaokangQian <xiaokang.qian@arm.com>
This commit is contained in:
XiaokangQian 2021-11-11 06:13:22 +00:00
parent 3306284776
commit c13f935c05

View File

@ -915,6 +915,8 @@ static int ssl_tls13_parse_finished_message( mbedtls_ssl_context *ssl,
return( 0 ); return( 0 );
} }
#if defined(MBEDTLS_SSL_CLI_C)
static int ssl_tls13_postprocess_server_finished_message( mbedtls_ssl_context *ssl ) static int ssl_tls13_postprocess_server_finished_message( mbedtls_ssl_context *ssl )
{ {
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
@ -971,14 +973,19 @@ cleanup:
} }
return( ret ); return( ret );
} }
#endif /* MBEDTLS_SSL_CLI_C */
static int ssl_tls13_postprocess_finished_message( mbedtls_ssl_context* ssl ) static int ssl_tls13_postprocess_finished_message( mbedtls_ssl_context* ssl )
{ {
#if defined(MBEDTLS_SSL_CLI_C)
if( ssl->conf->endpoint == MBEDTLS_SSL_IS_CLIENT ) if( ssl->conf->endpoint == MBEDTLS_SSL_IS_CLIENT )
{ {
return( ssl_tls13_postprocess_server_finished_message( ssl ) ); return( ssl_tls13_postprocess_server_finished_message( ssl ) );
} }
#else
((void) ssl);
#endif /* MBEDTLS_SSL_CLI_C */
return( MBEDTLS_ERR_SSL_INTERNAL_ERROR ); return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
} }