commit | dd0c0f33c013d1d7d4e401364dbc9c9ebce53295 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Mon Jun 23 18:07:11 2014 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Wed Jun 25 11:26:14 2014 +0200 |
tree | 576598ab442f1d48233959c7f38e68b42c67a72a | |
parent | 8df68632e838539730556f13ee8e06121fe986e5 [diff] [blame] |
Better usage of dhm_calc_secret in SSL
diff --git a/library/ssl_cli.c b/library/ssl_cli.c index 7b9b6e9..d3096ab 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c
@@ -2055,7 +2055,7 @@ SSL_DEBUG_MPI( 3, "DHM: X ", &ssl->handshake->dhm_ctx.X ); SSL_DEBUG_MPI( 3, "DHM: GX", &ssl->handshake->dhm_ctx.GX ); - ssl->handshake->pmslen = ssl->handshake->dhm_ctx.len; + ssl->handshake->pmslen = POLARSSL_PREMASTER_SIZE; if( ( ret = dhm_calc_secret( &ssl->handshake->dhm_ctx, ssl->handshake->premaster,