mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 08:43:03 +00:00
[MBEDTLS] Update to version 2.7.19. CORE-17252
This commit is contained in:
parent
2e53fc8edb
commit
a01a8faa60
19 changed files with 352 additions and 66 deletions
6
dll/3rdparty/mbedtls/threading.c
vendored
6
dll/3rdparty/mbedtls/threading.c
vendored
|
@ -60,6 +60,12 @@ static void threading_mutex_init_pthread( mbedtls_threading_mutex_t *mutex )
|
|||
if( mutex == NULL )
|
||||
return;
|
||||
|
||||
/* A nonzero value of is_valid indicates a successfully initialized
|
||||
* mutex. This is a workaround for not being able to return an error
|
||||
* code for this function. The lock/unlock functions return an error
|
||||
* if is_valid is nonzero. The Mbed TLS unit test code uses this field
|
||||
* to distinguish more states of the mutex; see helpers.function for
|
||||
* details. */
|
||||
mutex->is_valid = pthread_mutex_init( &mutex->mutex, NULL ) == 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue