diff options
author | Felix Fietkau <nbd@nbd.name> | 2024-03-05 19:13:52 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2024-03-08 22:46:32 +0100 |
commit | e3bb01b30ea524e0004de6eb66466a514591ef42 (patch) | |
tree | f48039bc318c0ccb364565e4fef3d1a76a14a01e /package/libs/mbedtls | |
parent | 8efd1f98a910d9af2fb92accce62d03200e47f0a (diff) |
mbedtls: enable threading support
Fixes libssh, which requires it. Bump ABI_VERSION, since enabling this
option affects data structures in mbedtls include files.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/libs/mbedtls')
-rw-r--r-- | package/libs/mbedtls/Config.in | 7 | ||||
-rw-r--r-- | package/libs/mbedtls/Makefile | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/package/libs/mbedtls/Config.in b/package/libs/mbedtls/Config.in index 9fbe9f8a4a..ad0ecb6e61 100644 --- a/package/libs/mbedtls/Config.in +++ b/package/libs/mbedtls/Config.in @@ -172,6 +172,13 @@ config MBEDTLS_SSL_TRUNCATED_HMAC bool "MBEDTLS_SSL_TRUNCATED_HMAC" default n +config MBEDTLS_THREADING_C + bool "MBEDTLS_THREADING_C" + default y + +config MBEDTLS_THREADING_PTHREAD + def_bool MBEDTLS_THREADING_C + config MBEDTLS_VERSION_C bool "MBEDTLS_VERSION_C" default n diff --git a/package/libs/mbedtls/Makefile b/package/libs/mbedtls/Makefile index ad13bbe846..502bf65ffc 100644 --- a/package/libs/mbedtls/Makefile +++ b/package/libs/mbedtls/Makefile @@ -70,6 +70,8 @@ MBEDTLS_BUILD_OPTS= \ CONFIG_MBEDTLS_SELF_TEST \ CONFIG_MBEDTLS_SSL_RENEGOTIATION \ CONFIG_MBEDTLS_SSL_TRUNCATED_HMAC \ + CONFIG_MBEDTLS_THREADING_C \ + CONFIG_MBEDTLS_THREADING_PTHREAD \ CONFIG_MBEDTLS_VERSION_C \ CONFIG_MBEDTLS_VERSION_FEATURES @@ -94,7 +96,7 @@ $(call Package/mbedtls/Default) CATEGORY:=Libraries SUBMENU:=SSL TITLE+= (library) - ABI_VERSION:=12 + ABI_VERSION:=13 MENU:=1 endef |