mbedtls: enable threading support
authorFelix Fietkau <nbd@nbd.name>
Tue, 5 Mar 2024 18:13:52 +0000 (19:13 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 8 Mar 2024 21:46:32 +0000 (22:46 +0100)
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>
package/libs/mbedtls/Config.in
package/libs/mbedtls/Makefile

index 9fbe9f8a4a0ff404283861df9aa4c8c91a5479f6..ad0ecb6e611aa8281971290a60bd1297aca5e145 100644 (file)
@@ -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
index ad13bbe846371c9c3208e1404864288cd463fc45..502bf65ffc450f43e2628c19617ba55102a4d47a 100644 (file)
@@ -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