mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
Seperate declarations from function body
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
This commit is contained in:
@@ -4901,6 +4901,7 @@ static psa_status_t psa_key_agreement_raw_internal(psa_algorithm_t alg,
|
|||||||
{
|
{
|
||||||
mbedtls_ecp_keypair *ecp = NULL;
|
mbedtls_ecp_keypair *ecp = NULL;
|
||||||
psa_status_t status;
|
psa_status_t status;
|
||||||
|
|
||||||
switch (alg) {
|
switch (alg) {
|
||||||
#if defined(MBEDTLS_PSA_BUILTIN_ALG_ECDH)
|
#if defined(MBEDTLS_PSA_BUILTIN_ALG_ECDH)
|
||||||
case PSA_ALG_ECDH:
|
case PSA_ALG_ECDH:
|
||||||
|
@@ -807,6 +807,7 @@ int mbedtls_ssl_write_fragment(mbedtls_ssl_context *ssl,
|
|||||||
const int expected_fragments)
|
const int expected_fragments)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* Verify that calling mbedtls_ssl_write with a NULL buffer and zero length is
|
/* Verify that calling mbedtls_ssl_write with a NULL buffer and zero length is
|
||||||
* a valid no-op for TLS connections. */
|
* a valid no-op for TLS connections. */
|
||||||
if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) {
|
if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) {
|
||||||
@@ -854,6 +855,7 @@ int mbedtls_ssl_read_fragment(mbedtls_ssl_context *ssl,
|
|||||||
const int expected_fragments)
|
const int expected_fragments)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* Verify that calling mbedtls_ssl_write with a NULL buffer and zero length is
|
/* Verify that calling mbedtls_ssl_write with a NULL buffer and zero length is
|
||||||
* a valid no-op for TLS connections. */
|
* a valid no-op for TLS connections. */
|
||||||
if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) {
|
if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) {
|
||||||
|
Reference in New Issue
Block a user