Better usage of dhm_calc_secret in SSL

This commit is contained in:
Manuel Pégourié-Gonnard 2014-06-23 18:07:11 +02:00 committed by Paul Bakker
parent 8df68632e8
commit dd0c0f33c0
3 changed files with 3 additions and 6 deletions

View file

@ -2055,7 +2055,7 @@ static int ssl_write_client_key_exchange( ssl_context *ssl )
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,