fix format and comment issues

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2022-08-16 14:50:28 +08:00
parent b25d10f153
commit 6cf6b47b5c
4 changed files with 10 additions and 10 deletions

View file

@ -359,7 +359,7 @@ int mbedtls_ssl_tls13_evolve_secret(
ret = 0; ret = 0;
if( ( input != NULL ) && ( input_len != 0 ) ) if( input != NULL && input_len != 0 )
{ {
memcpy( tmp_input, input, input_len ); memcpy( tmp_input, input, input_len );
ilen = input_len; ilen = input_len;

View file

@ -693,12 +693,12 @@ MBEDTLS_CHECK_RETURN_CRITICAL
int mbedtls_ssl_tls13_compute_application_transform( mbedtls_ssl_context *ssl ); int mbedtls_ssl_tls13_compute_application_transform( mbedtls_ssl_context *ssl );
/** /**
* \brief Export TLS 1.3 PSK key from handshake context * \brief Export TLS 1.3 PSK from handshake context
* *
* \param ssl The SSL context to operate on. * \param ssl The SSL context to operate on.
* \param psk PSK key output pointer. * \param psk PSK output pointer.
* \param psk_len * \param psk_len
* Length of PSK key. * Length of PSK.
* *
* \returns \c 0 on success. * \returns \c 0 on success.
* \returns A negative error code on failure. * \returns A negative error code on failure.

View file

@ -1057,9 +1057,9 @@ static int ssl_tls13_parse_client_hello( mbedtls_ssl_context *ssl,
ciphersuite_info == NULL ? ciphersuite_info == NULL ?
"Unkown": ciphersuite_info->name ) ); "Unkown": ciphersuite_info->name ) );
} }
#else #else /* MBEDTLS_DEBUG_C */
p = cipher_suites_end; p = cipher_suites_end;
#endif /* MBEDTLS_DEBUG_C */ #endif /* !MBEDTLS_DEBUG_C */
/* ... /* ...
* opaque legacy_compression_methods<1..2^8-1>; * opaque legacy_compression_methods<1..2^8-1>;