Create ticket keys only if enabled

This commit is contained in:
Manuel Pégourié-Gonnard 2014-11-21 09:23:11 +01:00
parent cb7da352fd
commit 2457fa0915

View file

@ -4074,6 +4074,9 @@ int ssl_set_session_tickets( ssl_context *ssl, int use_tickets )
return( 0 );
#endif
if( use_tickets == SSL_SESSION_TICKETS_DISABLED )
return( 0 );
if( ssl->f_rng == NULL )
return( POLARSSL_ERR_SSL_BAD_INPUT_DATA );