mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-04-25 15:56:23 +00:00
Remove duplicated branch in ssl_compute_master()
This commit is contained in:
parent
a575975280
commit
bcf258e077
|
@ -1138,19 +1138,15 @@ static int ssl_compute_master( mbedtls_ssl_handshake_params *handshake,
|
||||||
"extended master secret",
|
"extended master secret",
|
||||||
session_hash, hash_len,
|
session_hash, hash_len,
|
||||||
master, 48 );
|
master, 48 );
|
||||||
if( ret != 0 )
|
|
||||||
{
|
|
||||||
MBEDTLS_SSL_DEBUG_RET( 1, "prf", ret );
|
|
||||||
return( ret );
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
ret = handshake->tls_prf( handshake->premaster, handshake->pmslen,
|
{
|
||||||
"master secret",
|
ret = handshake->tls_prf( handshake->premaster, handshake->pmslen,
|
||||||
handshake->randbytes, 64,
|
"master secret",
|
||||||
master, 48 );
|
handshake->randbytes, 64,
|
||||||
|
master, 48 );
|
||||||
|
}
|
||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
{
|
{
|
||||||
MBEDTLS_SSL_DEBUG_RET( 1, "prf", ret );
|
MBEDTLS_SSL_DEBUG_RET( 1, "prf", ret );
|
||||||
|
|
Loading…
Reference in a new issue