mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-06 06:28:56 +01:00
Merge branch 'development' into iotssl-1260-non-blocking-ecc-restricted
* development: ssl-opt.sh: change expected output for large srv packet test with SSLv3 Adapt ChangeLog Fix bug in SSL ticket implementation removing keys of age < 1s ssl-opt.sh: Add DTLS session resumption tests Add ChangeLog entry Fix typo Fix hmac_drbg failure in benchmark, with threading Remove trailing whitespace Remove trailing whitespace ssl_server2: add buffer overhead for a termination character Add missing large and small packet tests for ssl_server2 Added buffer_size and response_size options for ssl-server2. Added appropriate tests. Solving a conflict in tests/ssl-opt.sh: two set of tests were added at the same place (just after large packets): - restartable ECC tests (in this branch) - server-side large packets (in development) Resolution was to move the ECC tests after the newly added server large packet ones.
This commit is contained in:
commit
6346a75dfb
5 changed files with 835 additions and 80 deletions
|
|
@ -97,7 +97,7 @@ static int ssl_ticket_update_keys( mbedtls_ssl_ticket_context *ctx )
|
|||
uint32_t current_time = (uint32_t) mbedtls_time( NULL );
|
||||
uint32_t key_time = ctx->keys[ctx->active].generation_time;
|
||||
|
||||
if( current_time > key_time &&
|
||||
if( current_time >= key_time &&
|
||||
current_time - key_time < ctx->ticket_lifetime )
|
||||
{
|
||||
return( 0 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue