]> granicus.if.org Git - esp-idf/commitdiff
Add option to disable server side SSL session tickets as well as client
authorStephen Bird <sebirdman@gmail.com>
Tue, 16 Oct 2018 00:28:29 +0000 (17:28 -0700)
committerMahavir Jain <mahavir@espressif.com>
Wed, 29 May 2019 12:32:18 +0000 (18:02 +0530)
Closes https://github.com/espressif/esp-idf/pull/2570

components/mbedtls/Kconfig
components/mbedtls/port/include/mbedtls/esp_config.h

index 5ad419cec55577eb5377ce00fcfd452db0868709..4d1d527fea789b42c2f164a064665a0ea110937d 100644 (file)
@@ -330,13 +330,20 @@ menu "mbedTLS"
         help
             Disabling this option will save some code size if it is not needed.
 
-    config MBEDTLS_SSL_SESSION_TICKETS
-        bool "TLS: Support RFC 5077 SSL session tickets"
+    config MBEDTLS_CLIENT_SSL_SESSION_TICKETS
+        bool "TLS: Client Support for RFC 5077 SSL session tickets"
         default y
         depends on MBEDTLS_TLS_ENABLED
         help
-            Support RFC 5077 session tickets. See mbedTLS documentation for more details.
+            Client support for RFC 5077 session tickets. See mbedTLS documentation for more details.
+            Disabling this option will save some code size.
 
+    config MBEDTLS_SERVER_SSL_SESSION_TICKETS
+        bool "TLS: Server Support for RFC 5077 SSL session tickets"
+        default y
+        depends on MBEDTLS_TLS_ENABLED
+        help
+            Server support for RFC 5077 session tickets. See mbedTLS documentation for more details.
             Disabling this option will save some code size.
 
     menu "Symmetric Ciphers"
index 89cdef8927cbf9862f7a3a130363a1c326152258..40ae3ae3684e86d2ecbc58d2eff7976a529b6c99 100644 (file)
  *
  * Comment this macro to disable support for SSL session tickets
  */
-#ifdef CONFIG_MBEDTLS_SSL_SESSION_TICKETS
+#ifdef CONFIG_MBEDTLS_CLIENT_SSL_SESSION_TICKETS
 #define MBEDTLS_SSL_SESSION_TICKETS
 #endif
 
  *
  * Requires: MBEDTLS_CIPHER_C
  */
+#ifdef CONFIG_MBEDTLS_SERVER_SSL_SESSION_TICKETS
 #define MBEDTLS_SSL_TICKET_C
+#endif
 
 /**
  * \def MBEDTLS_SSL_CLI_C