mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-22 14:51:13 +00:00
Fix misplaced initialisation
This commit is contained in:
parent
f3dc2f6a1d
commit
e5e1bb972c
|
@ -3277,6 +3277,10 @@ static int ssl_handshake_init( ssl_context *ssl )
|
||||||
ecdh_init( &ssl->handshake->ecdh_ctx );
|
ecdh_init( &ssl->handshake->ecdh_ctx );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(POLARSSL_X509_CRT_PARSE_C)
|
||||||
|
ssl->handshake->key_cert = ssl->key_cert;
|
||||||
|
#endif
|
||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3951,10 +3955,6 @@ int ssl_handshake( ssl_context *ssl )
|
||||||
|
|
||||||
SSL_DEBUG_MSG( 2, ( "=> handshake" ) );
|
SSL_DEBUG_MSG( 2, ( "=> handshake" ) );
|
||||||
|
|
||||||
#if defined(POLARSSL_X509_CRT_PARSE_C)
|
|
||||||
ssl->handshake->key_cert = ssl->key_cert;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
while( ssl->state != SSL_HANDSHAKE_OVER )
|
while( ssl->state != SSL_HANDSHAKE_OVER )
|
||||||
{
|
{
|
||||||
ret = ssl_handshake_step( ssl );
|
ret = ssl_handshake_step( ssl );
|
||||||
|
|
Loading…
Reference in a new issue