1
0
Fork 0
godot/modules
Fabio Alessandrelli 2c789788c0 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 11:45:00 +02:00
..
astcenc SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -05:00
basis_universal Merge pull request #105080 from beicause/basisu-ktx2-settings 2025-05-05 11:24:20 -05:00
bcdec CI: Bump various pre-commit hooks 2025-04-07 08:23:35 -05:00
betsy Betsy: Remove OGRE aliases 2025-04-22 14:54:57 +02:00
bmp Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
camera linux: respect order of device list when enumerating camera feeds 2025-04-24 17:00:15 -04:00
csg Core: Use `Math` namespace for constants 2025-04-10 16:29:30 -05:00
cvtt SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -05:00
dds Merge pull request #105200 from Monstrofil/fix-dds-mipmap-size-compressed-v2 2025-04-15 12:28:48 -05:00
enet SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -05:00
etcpak SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -05:00
fbx Add `GLOBAL_GET` cached macros. 2025-04-30 15:08:50 +01:00
freetype SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -05:00
gdscript Merge pull request #93517 from Repiteo/core/nodiscard-strings 2025-05-07 12:48:27 -05:00
glslang SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -05:00
gltf Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
godot_physics_2d Merge pull request #104386 from Repiteo/core/cpp-math 2025-04-27 19:21:22 -05:00
godot_physics_3d Merge pull request #104386 from Repiteo/core/cpp-math 2025-04-27 19:21:22 -05:00
gridmap Allow rotating selected cells in GridMap 2025-04-30 11:46:39 +01:00
hdr Core: Replace C math headers with C++ equivalents 2025-04-16 15:49:02 -05:00
interactive_music Add `String::replace_char(s)` methods for performance and convenience 2025-04-10 13:08:45 +02:00
jolt_physics Remove emitting of error in `JoltBody3D::_exit_all_areas` 2025-05-06 11:36:22 +02:00
jpg Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
jsonrpc JSONRPC: Fix notification return behavior 2025-04-04 10:41:18 +02:00
ktx SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -05:00
lightmapper_rd Scene shader: Improve and document SH evaluation for light probes 2025-04-19 15:08:02 +02:00
mbedtls mbedTLS: Fix concurrency issues with TLS 2025-05-08 11:45:00 +02:00
meshoptimizer Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
minimp3 SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -05:00
mobile_vr Core: Replace C math headers with C++ equivalents 2025-04-16 15:49:02 -05:00
mono Merge pull request #105887 from Repiteo/core/modernize-headers 2025-05-02 09:25:29 -05:00
msdfgen SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -05:00
multiplayer Selectively apply `FOCUS_ACCESSIBILITY` to the `Label`s instead of setting it by default. 2025-04-23 12:47:31 +03:00
navigation_2d Merge pull request #105718 from aaronfranke/nav-const-caps 2025-05-06 08:38:07 -05:00
navigation_3d Move NavigationRegion3DGizmoPlugin to navigation_3d module 2025-05-06 20:49:42 +02:00
noise Core: Replace C math headers with C++ equivalents 2025-04-16 15:49:02 -05:00
ogg SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -05:00
openxr Merge pull request #89746 from KoBeWi/NOTification 2025-05-07 12:48:21 -05:00
raycast Merge pull request #105697 from akien-mga/scons-x86_32-mfpmath-sse 2025-04-28 10:01:31 -05:00
regex Merge pull request #104893 from Repiteo/scons/external-includes-alt 2025-04-02 07:48:03 -05:00
svg Use libjpeg-turbo for improved jpg compatibility and speed 2025-05-02 11:47:56 +02:00
text_server_adv Remove _FORCE_INLINE_ from TextServer*::_ensure* methods 2025-05-06 17:49:38 -04:00
text_server_fb Remove _FORCE_INLINE_ from TextServer*::_ensure* methods 2025-05-06 17:49:38 -04:00
tga Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
theora SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -05:00
tinyexr Merge pull request #104893 from Repiteo/scons/external-includes-alt 2025-04-02 07:48:03 -05:00
upnp Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
vhacd SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -05:00
vorbis Add an actual name for Ogg Vorbis importer/visible name. 2025-04-08 11:47:46 -03:00
webp Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
webrtc Replace size() == 0 with is_empty(). 2025-04-02 19:18:43 +08:00
websocket Merge pull request #104893 from Repiteo/scons/external-includes-alt 2025-04-02 07:48:03 -05:00
webxr Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
xatlas_unwrap SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -05:00
zip Add compression level support to ZipPacker 2025-03-20 10:42:30 -04:00
SCsub SCons: Begin decoupling generation & build code 2025-04-25 08:23:01 -05:00
modules_builders.py SCons: Begin decoupling generation & build code 2025-04-25 08:23:01 -05:00
register_module_types.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00