Skip to content

Commit

Permalink
Merge remote-tracking branch 'public/pr/1727' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbutcher committed Jun 17, 2018
2 parents 1f91575 + 600c5e6 commit cbe248a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Bugfix
curves as well as RSA. Fixes #777 found by dbedev.
* Fix for redefinition of _WIN32_WINNT to avoid overriding a definition
used by user applications. Found and fixed by Fabio Alessandrelli.
* Fix compilation warnings with IAR toolchain, on 32 bit platform.
Reported by rahmanih in #683

Changes
* Changed CMake defaults for IAR to treat all compiler warnings as errors.
Expand Down
6 changes: 3 additions & 3 deletions library/ssl_srv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2888,7 +2888,7 @@ static int ssl_prepare_server_key_exchange( mbedtls_ssl_context *ssl,
if( ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECJPAKE )
{
int ret;
size_t len;
size_t len = 0;

ret = mbedtls_ecjpake_write_round_two(
&ssl->handshake->ecjpake_ctx,
Expand Down Expand Up @@ -2928,7 +2928,7 @@ static int ssl_prepare_server_key_exchange( mbedtls_ssl_context *ssl,
if( mbedtls_ssl_ciphersuite_uses_dhe( ciphersuite_info ) )
{
int ret;
size_t len;
size_t len = 0;

if( ssl->conf->dhm_P.p == NULL || ssl->conf->dhm_G.p == NULL )
{
Expand Down Expand Up @@ -2993,7 +2993,7 @@ static int ssl_prepare_server_key_exchange( mbedtls_ssl_context *ssl,
const mbedtls_ecp_curve_info **curve = NULL;
const mbedtls_ecp_group_id *gid;
int ret;
size_t len;
size_t len = 0;

/* Match our preference list against the offered curves */
for( gid = ssl->conf->curve_list; *gid != MBEDTLS_ECP_DP_NONE; gid++ )
Expand Down

0 comments on commit cbe248a

Please sign in to comment.