summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/mbedtls/Config.in12
-rw-r--r--package/mbedtls/mbedtls.mk2
2 files changed, 13 insertions, 1 deletions
diff --git a/package/mbedtls/Config.in b/package/mbedtls/Config.in
index 24f0f489d4..ed63f2da58 100644
--- a/package/mbedtls/Config.in
+++ b/package/mbedtls/Config.in
@@ -17,4 +17,16 @@ config BR2_PACKAGE_MBEDTLS_PROGRAMS
This option enables the installation and the build of
mbed TLS companion programs.
+config BR2_PACKAGE_MBEDTLS_COMPRESSION
+ bool "enable compression support"
+ select BR2_PACKAGE_ZLIB
+ help
+ Enable support for compression of the content data before it
+ enters the secure channel as described in RFC 3749.
+
+ Warning: TLS compression may make you vulnerable to the CRIME
+ attack. You should not enable it unless you know for sure CRIME
+ and similar attacks are not applicable to your particular
+ situation.
+
endif
diff --git a/package/mbedtls/mbedtls.mk b/package/mbedtls/mbedtls.mk
index 7171af9f98..198879da4d 100644
--- a/package/mbedtls/mbedtls.mk
+++ b/package/mbedtls/mbedtls.mk
@@ -39,7 +39,7 @@ MBEDTLS_CONF_OPTS += \
-DUSE_SHARED_MBEDTLS_LIBRARY=ON -DUSE_STATIC_MBEDTLS_LIBRARY=OFF
endif
-ifeq ($(BR2_PACKAGE_ZLIB),y)
+ifeq ($(BR2_PACKAGE_MBEDTLS_COMPRESSION),y)
MBEDTLS_CONF_OPTS += -DENABLE_ZLIB_SUPPORT=ON
MBEDTLS_DEPENDENCIES += zlib
define MBEDTLS_ENABLE_ZLIB
OpenPOWER on IntegriCloud