Skip to content

Commit

Permalink
Seperate declarations from function body
Browse files Browse the repository at this point in the history
Signed-off-by: Agathiyan Bragadeesh <[email protected]>
  • Loading branch information
Agathiyan Bragadeesh committed Jul 31, 2023
1 parent 5521b4c commit e7eb805
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions library/psa_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -4901,6 +4901,7 @@ static psa_status_t psa_key_agreement_raw_internal(psa_algorithm_t alg,
{
mbedtls_ecp_keypair *ecp = NULL;
psa_status_t status;

switch (alg) {
#if defined(MBEDTLS_PSA_BUILTIN_ALG_ECDH)
case PSA_ALG_ECDH:
Expand Down
2 changes: 2 additions & 0 deletions tests/src/test_helpers/ssl_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ int mbedtls_ssl_write_fragment(mbedtls_ssl_context *ssl,
const int expected_fragments)
{
int ret;

/* Verify that calling mbedtls_ssl_write with a NULL buffer and zero length is
* a valid no-op for TLS connections. */
if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) {
Expand Down Expand Up @@ -854,6 +855,7 @@ int mbedtls_ssl_read_fragment(mbedtls_ssl_context *ssl,
const int expected_fragments)
{
int ret;

/* Verify that calling mbedtls_ssl_write with a NULL buffer and zero length is
* a valid no-op for TLS connections. */
if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) {
Expand Down

0 comments on commit e7eb805

Please sign in to comment.