From 0d20f8816f21622eab872cfce6f163ed38a59e14 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Wed, 15 Feb 2023 10:37:09 +0530 Subject: [PATCH 1/2] esp-tls: Fix build issue when esp-tls server session tickets have been enabled. Closes https://github.com/espressif/esp-idf/issues/10765 --- components/esp-tls/esp_tls.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/esp-tls/esp_tls.h b/components/esp-tls/esp_tls.h index 07c1c8089db..3ada350379e 100644 --- a/components/esp-tls/esp_tls.h +++ b/components/esp-tls/esp_tls.h @@ -14,6 +14,8 @@ #include "mbedtls/ssl.h" #ifdef CONFIG_ESP_TLS_SERVER_SESSION_TICKETS #include "mbedtls/ssl_ticket.h" +#include "mbedtls/entropy.h" +#include "mbedtls/ctr_drbg.h" #endif #elif CONFIG_ESP_TLS_USING_WOLFSSL #include "wolfssl/wolfcrypt/settings.h" From bd81d8f9d312c229f294016fb5504549de8b7daa Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Wed, 15 Feb 2023 10:40:07 +0530 Subject: [PATCH 2/2] esp-tls: Add build test for server session ticket option --- examples/protocols/https_server/simple/sdkconfig.ci.srv_ses_tkt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 examples/protocols/https_server/simple/sdkconfig.ci.srv_ses_tkt diff --git a/examples/protocols/https_server/simple/sdkconfig.ci.srv_ses_tkt b/examples/protocols/https_server/simple/sdkconfig.ci.srv_ses_tkt new file mode 100644 index 00000000000..a0ff28b5cdf --- /dev/null +++ b/examples/protocols/https_server/simple/sdkconfig.ci.srv_ses_tkt @@ -0,0 +1,2 @@ +CONFIG_ESP_HTTPS_SERVER_ENABLE=y +CONFIG_ESP_TLS_SERVER_SESSION_TICKETS=y