mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-04-28 12:36:19 +00:00
Create ticket keys only if enabled
This commit is contained in:
parent
cb7da352fd
commit
2457fa0915
|
@ -4074,6 +4074,9 @@ int ssl_set_session_tickets( ssl_context *ssl, int use_tickets )
|
||||||
return( 0 );
|
return( 0 );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if( use_tickets == SSL_SESSION_TICKETS_DISABLED )
|
||||||
|
return( 0 );
|
||||||
|
|
||||||
if( ssl->f_rng == NULL )
|
if( ssl->f_rng == NULL )
|
||||||
return( POLARSSL_ERR_SSL_BAD_INPUT_DATA );
|
return( POLARSSL_ERR_SSL_BAD_INPUT_DATA );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue