diff --git a/examples/protocols/https_request/main/https_request_example_main.c b/examples/protocols/https_request/main/https_request_example_main.c index 6985f6ea8b9..b4f6778a07c 100644 --- a/examples/protocols/https_request/main/https_request_example_main.c +++ b/examples/protocols/https_request/main/https_request_example_main.c @@ -10,7 +10,7 @@ * * SPDX-License-Identifier: Apache-2.0 * - * SPDX-FileContributor: 2015-2025 Espressif Systems (Shanghai) CO LTD + * SPDX-FileContributor: 2015-2026 Espressif Systems (Shanghai) CO LTD */ #include @@ -218,6 +218,11 @@ static void https_get_request_using_specified_ciphersuites(void) .cacert_buf = (const unsigned char *) server_root_cert_pem_start, .cacert_bytes = server_root_cert_pem_end - server_root_cert_pem_start, .ciphersuites_list = server_supported_ciphersuites, +#if defined(CONFIG_EXAMPLE_SSL_PROTO_TLS1_3_CLIENT) + .tls_version = ESP_TLS_VER_TLS_1_3, +#else + .tls_version = ESP_TLS_VER_TLS_1_2, +#endif }; https_get_request(cfg, WEB_URL, HOWSMYSSL_REQUEST);