@@ -342,7 +342,7 @@ static void ssl_write_supported_point_formats_ext( mbedtls_ssl_context *ssl,
342
342
343
343
* olen = 6 ;
344
344
}
345
- #endif /* MBEDTLS_ECDH_C || MBEDTLS_ECDSA_C ||
345
+ #endif /* MBEDTLS_ECDH_C || MBEDTLS_ECDSA_C ||
346
346
MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED */
347
347
348
348
#if defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED )
@@ -1217,7 +1217,7 @@ static int ssl_parse_supported_point_formats_ext( mbedtls_ssl_context *ssl,
1217
1217
{
1218
1218
#if defined(MBEDTLS_ECDH_C ) || defined(MBEDTLS_ECDSA_C )
1219
1219
ssl -> handshake -> ecdh_ctx .point_format = p [0 ];
1220
- #endif
1220
+ #endif
1221
1221
#if defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED )
1222
1222
ssl -> handshake -> ecjpake_ctx .point_format = p [0 ];
1223
1223
#endif
@@ -1232,7 +1232,7 @@ static int ssl_parse_supported_point_formats_ext( mbedtls_ssl_context *ssl,
1232
1232
MBEDTLS_SSL_DEBUG_MSG ( 1 , ( "no point format in common" ) );
1233
1233
return ( MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO );
1234
1234
}
1235
- #endif /* MBEDTLS_ECDH_C || MBEDTLS_ECDSA_C ||
1235
+ #endif /* MBEDTLS_ECDH_C || MBEDTLS_ECDSA_C ||
1236
1236
MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED */
1237
1237
1238
1238
#if defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED )
@@ -2339,7 +2339,7 @@ static int ssl_parse_server_key_exchange( mbedtls_ssl_context *ssl )
2339
2339
ciphersuite_info -> key_exchange == MBEDTLS_KEY_EXCHANGE_ECDHE_RSA ||
2340
2340
ciphersuite_info -> key_exchange == MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA )
2341
2341
{
2342
- size_t sig_len , hashlen ;
2342
+ size_t sig_len , hashlen = 0 ;
2343
2343
unsigned char hash [64 ];
2344
2344
mbedtls_md_type_t md_alg = MBEDTLS_MD_NONE ;
2345
2345
mbedtls_pk_type_t pk_alg = MBEDTLS_PK_NONE ;
@@ -2726,7 +2726,7 @@ static int ssl_parse_server_hello_done( mbedtls_ssl_context *ssl )
2726
2726
static int ssl_write_client_key_exchange ( mbedtls_ssl_context * ssl )
2727
2727
{
2728
2728
int ret ;
2729
- size_t i , n ;
2729
+ size_t i = 0 , n = 0 ;
2730
2730
const mbedtls_ssl_ciphersuite_t * ciphersuite_info = ssl -> transform_negotiate -> ciphersuite_info ;
2731
2731
2732
2732
MBEDTLS_SSL_DEBUG_MSG ( 2 , ( "=> write client key exchange" ) );
0 commit comments