mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 23:25:38 +00:00
Merge branch 'mbedtls-1.3' into mbedtls-1.3-restricted
This commit is contained in:
commit
6564d7a904
|
@ -79,7 +79,7 @@ Bugfix
|
||||||
* Fix word size check in in pk.c to not depend on MBEDTLS_HAVE_INT64.
|
* Fix word size check in in pk.c to not depend on MBEDTLS_HAVE_INT64.
|
||||||
* Fix crash when calling mbedtls_ssl_cache_free() twice. Found by
|
* Fix crash when calling mbedtls_ssl_cache_free() twice. Found by
|
||||||
MilenkoMitrovic, #1104
|
MilenkoMitrovic, #1104
|
||||||
* Fix mbedtls_timing_alarm(0) on Unix.
|
* Fix mbedtls_timing_alarm(0) on Unix and MinGW.
|
||||||
* Fix use of uninitialized memory in mbedtls_timing_get_timer when reset=1.
|
* Fix use of uninitialized memory in mbedtls_timing_get_timer when reset=1.
|
||||||
* Fix issue in RSA key generation program programs/x509/rsa_genkey
|
* Fix issue in RSA key generation program programs/x509/rsa_genkey
|
||||||
where the failure of CTR DRBG initialization lead to freeing an
|
where the failure of CTR DRBG initialization lead to freeing an
|
||||||
|
|
|
@ -268,6 +268,14 @@ void set_alarm( int seconds )
|
||||||
{
|
{
|
||||||
DWORD ThreadId;
|
DWORD ThreadId;
|
||||||
|
|
||||||
|
if( seconds == 0 )
|
||||||
|
{
|
||||||
|
/* No need to create a thread for this simple case.
|
||||||
|
* Also, this shorcut is more reliable at least on MinGW32 */
|
||||||
|
alarmed = 1;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
alarmed = 0;
|
alarmed = 0;
|
||||||
alarmMs = seconds * 1000;
|
alarmMs = seconds * 1000;
|
||||||
CloseHandle( CreateThread( NULL, 0, TimerProc, NULL, 0, &ThreadId ) );
|
CloseHandle( CreateThread( NULL, 0, TimerProc, NULL, 0, &ThreadId ) );
|
||||||
|
|
Loading…
Reference in a new issue