mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-22 05:46:41 +01:00
Generate random key for HelloVerifyRequest
This commit is contained in:
parent
dd3cdb0fbc
commit
98545f128a
4 changed files with 43 additions and 15 deletions
|
|
@ -1344,6 +1344,15 @@ int main( int argc, char *argv[] )
|
|||
ssl_set_session_ticket_lifetime( &ssl, opt.ticket_timeout );
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_SSL_PROTO_DTLS)
|
||||
if( opt.transport == SSL_TRANSPORT_DATAGRAM &&
|
||||
( ret = ssl_setup_hvr_key( &ssl ) ) != 0 )
|
||||
{
|
||||
printf( " failed\n ! ssl_setup_hvr_key returned %d\n\n", ret );
|
||||
goto exit;
|
||||
}
|
||||
#endif
|
||||
|
||||
if( opt.force_ciphersuite[0] != DFL_FORCE_CIPHER )
|
||||
ssl_set_ciphersuites( &ssl, opt.force_ciphersuite );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue