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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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: 232ms Template: 3ms
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