Logo
Explore Help
Sign In
seedlingattempt/godot
1
0
Fork 0
You've already forked godot
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
2c789788c08e772edabf9765d7113f9c654b30ef
godot/thirdparty/mbedtls/include/threading_alt.h

4 lines
60 B
C++
Raw Normal View History

mbedTLS: Fix concurrency issues with TLS When we first integrated mbedTLS, we decided not to enable MBEDTLS_THREADING_C (which adds mutex locking to calls modifying the state), and instead to simply create separate contexts ("states") for each connection. This worked fine until recently. Sadly, mbedTLS 3 added a global state for the new PSA crypto functionalities (which are required to support TLSv1.3). This results in TLSv1.3 connections to access and modify the global state concurrently when running in threads. This commit enables MBEDTLS_THREADING_C, and MBEDTLS_THREADING_C_ALT to provide a generic Godot implementation using the engine Mutex class.
2025-05-08 10:43:00 +02:00
typedef struct {
void *mutex;
} mbedtls_threading_mutex_t;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.1 Page: 54ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API