From eb22b581afaab5b028726099e3571afb8b95d6af Mon Sep 17 00:00:00 2001 From: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com> Date: Wed, 10 Jul 2024 11:49:25 -0700 Subject: [PATCH] Use only a specified cipher suite (#50) * Use only a specified cipher suite * Clean up folder by removing support packages --- .DS_Store | Bin 0 -> 8196 bytes .../LPC54018_support/LPC54018_internal.xml | 34 --- .../LPC54018_support/LPC540xx_dir_part.xml | 10 - .../LPC54018_support/LPC540xx_list.xml | 4 - .../LPC54018_support/crt_directory.dtd | 88 ------ .../LPC54018_support/crt_infolist.dtd | 279 ------------------ .../LPC54018_support/info.properties | 7 - .../LPC54608_internal.xml | 39 --- .../LPC546xx_dir_part.xml | 10 - .../LPC54608J512_support/LPC546xx_list.xml | 4 - .../LPC54608J512_support/crt_directory.dtd | 88 ------ .../LPC54608J512_support/crt_infolist.dtd | 279 ------------------ .../LPC54608J512_support/info.properties | 7 - .../MIMXRT1060_dir_part.xml | 10 - .../MIMXRT1060_list.xml | 4 - .../MIMXRT1062_internal.xml | 38 --- .../MIMXRT1062xxxxA_support/crt_directory.dtd | 88 ------ .../MIMXRT1062xxxxA_support/crt_infolist.dtd | 279 ------------------ .../MIMXRT1062xxxxA_support/info.properties | 7 - .../crt_directory.dtd | 88 ------ .../crt_directory.xml | 7 - .../crt_infolist.dtd | 279 ------------------ .../info.properties | 5 - .mcuxpressoide_packages_support/readme.txt | 2 - .../transport_mbedtls/using_mbedtls.c | 7 + 25 files changed, 7 insertions(+), 1656 deletions(-) create mode 100644 .DS_Store delete mode 100644 .mcuxpressoide_packages_support/LPC54018_support/LPC54018_internal.xml delete mode 100644 .mcuxpressoide_packages_support/LPC54018_support/LPC540xx_dir_part.xml delete mode 100644 .mcuxpressoide_packages_support/LPC54018_support/LPC540xx_list.xml delete mode 100644 .mcuxpressoide_packages_support/LPC54018_support/crt_directory.dtd delete mode 100644 .mcuxpressoide_packages_support/LPC54018_support/crt_infolist.dtd delete mode 100644 .mcuxpressoide_packages_support/LPC54018_support/info.properties delete mode 100644 .mcuxpressoide_packages_support/LPC54608J512_support/LPC54608_internal.xml delete mode 100644 .mcuxpressoide_packages_support/LPC54608J512_support/LPC546xx_dir_part.xml delete mode 100644 .mcuxpressoide_packages_support/LPC54608J512_support/LPC546xx_list.xml delete mode 100644 .mcuxpressoide_packages_support/LPC54608J512_support/crt_directory.dtd delete mode 100644 .mcuxpressoide_packages_support/LPC54608J512_support/crt_infolist.dtd delete mode 100644 .mcuxpressoide_packages_support/LPC54608J512_support/info.properties delete mode 100644 .mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/MIMXRT1060_dir_part.xml delete mode 100644 .mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/MIMXRT1060_list.xml delete mode 100644 .mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/MIMXRT1062_internal.xml delete mode 100644 .mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/crt_directory.dtd delete mode 100644 .mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/crt_infolist.dtd delete mode 100644 .mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/info.properties delete mode 100644 .mcuxpressoide_packages_support/crt_directory.dtd delete mode 100644 .mcuxpressoide_packages_support/crt_directory.xml delete mode 100644 .mcuxpressoide_packages_support/crt_infolist.dtd delete mode 100644 .mcuxpressoide_packages_support/info.properties delete mode 100644 .mcuxpressoide_packages_support/readme.txt diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..0ffe3bec048c44591240d86ade2c9d98a4c57c2e GIT binary patch literal 8196 zcmeI1&u-H|5XNUqMAM`y6$exfh&(|g-XIMz5D8j|gmY-(5CVx^SK#?L z!Ebg=WIL{qdO#p{EAMB|&Nn;z?K+!HMZ~n%;S-S)5vg)19@nW#ini;uQ}$BJ1JJ;i z?kpY+XYr8d;~j5r@CtYZyaHYUuYgzJZ%}|eTTAtZec!eE+AH7{_%9XE&xZz=Vk^bO zq5bHfvPS^0g4q`C?N@)Wp$4#(V&V`B#W*VHs3tvPnDpde9G&)7>Yq4tbTPJP;-o#B z^n_y4gNJEYcQGx8zV-@u1$GtCvwKCFGLfmQ3g`Dz+L}LXvBdpfe)3+{GAww1D|pwo z-czDS63aryd5(Eh;MBLAIsPHN%w#Of0_#hG^%&M%MtE=JQhSjle=#EpxgTJ=p!Fm5 z#I_A+U1PnpIhBmse9nyez(ya-3Vz517V=>fImSc0uIOVx1~LAc0eab9hdeE@t0H6K zHL*`6%10Em%tbtur}9Eh#7p7~x-=03c0>A)F)kJ49gqt`eiZp zCWRRHQcho9OIO-3`=Dl0k^wo2e9fp=LHUxI*AeFYs;IF+w>ess&AG0WY}~u_-z(3- z==#X|*6d2qdC*)Ud8hi9D3|5bZ5A6m9jD1WZi;V+)hf%{XKuRa6`)T~f_xvUjXBC_ zbI52f$Y)AMx@K1>dW~&X;OT0}@@n$RjwrM_UJ;}8&H6p(Q*RN?;z(y)x78}zFHq@8D)1Ae>qCM7 literal 0 HcmV?d00001 diff --git a/.mcuxpressoide_packages_support/LPC54018_support/LPC54018_internal.xml b/.mcuxpressoide_packages_support/LPC54018_support/LPC54018_internal.xml deleted file mode 100644 index fff24c1..0000000 --- a/.mcuxpressoide_packages_support/LPC54018_support/LPC54018_internal.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - LPC54018 - LPC540xx - NXP - - - - - - - - Cortex-M4 - Cortex-M - - - diff --git a/.mcuxpressoide_packages_support/LPC54018_support/LPC540xx_dir_part.xml b/.mcuxpressoide_packages_support/LPC54018_support/LPC540xx_dir_part.xml deleted file mode 100644 index 9bd9e49..0000000 --- a/.mcuxpressoide_packages_support/LPC54018_support/LPC540xx_dir_part.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/.mcuxpressoide_packages_support/LPC54018_support/LPC540xx_list.xml b/.mcuxpressoide_packages_support/LPC54018_support/LPC540xx_list.xml deleted file mode 100644 index 1d8bb2d..0000000 --- a/.mcuxpressoide_packages_support/LPC54018_support/LPC540xx_list.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/.mcuxpressoide_packages_support/LPC54018_support/crt_directory.dtd b/.mcuxpressoide_packages_support/LPC54018_support/crt_directory.dtd deleted file mode 100644 index 82b67e1..0000000 --- a/.mcuxpressoide_packages_support/LPC54018_support/crt_directory.dtd +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/.mcuxpressoide_packages_support/LPC54018_support/crt_infolist.dtd b/.mcuxpressoide_packages_support/LPC54018_support/crt_infolist.dtd deleted file mode 100644 index 26843dc..0000000 --- a/.mcuxpressoide_packages_support/LPC54018_support/crt_infolist.dtd +++ /dev/null @@ -1,279 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.mcuxpressoide_packages_support/LPC54018_support/info.properties b/.mcuxpressoide_packages_support/LPC54018_support/info.properties deleted file mode 100644 index c0f63c7..0000000 --- a/.mcuxpressoide_packages_support/LPC54018_support/info.properties +++ /dev/null @@ -1,7 +0,0 @@ -#MCUXpresso IDE part support -#Tue Apr 25 15:39:23 PDT 2023 -sdk.id=SDK_2.x_LPC54018-IoT-Module -sdk.build=366 2020-07-21 -device.version=1.0.0 -sdk.version=2.8.0 -device.id=LPC54018 diff --git a/.mcuxpressoide_packages_support/LPC54608J512_support/LPC54608_internal.xml b/.mcuxpressoide_packages_support/LPC54608J512_support/LPC54608_internal.xml deleted file mode 100644 index fb2de67..0000000 --- a/.mcuxpressoide_packages_support/LPC54608J512_support/LPC54608_internal.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - LPC54608J512 - LPC546xx - NXP - - - - - - - - - Cortex-M4 - Cortex-M - - - diff --git a/.mcuxpressoide_packages_support/LPC54608J512_support/LPC546xx_dir_part.xml b/.mcuxpressoide_packages_support/LPC54608J512_support/LPC546xx_dir_part.xml deleted file mode 100644 index 0e653f8..0000000 --- a/.mcuxpressoide_packages_support/LPC54608J512_support/LPC546xx_dir_part.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/.mcuxpressoide_packages_support/LPC54608J512_support/LPC546xx_list.xml b/.mcuxpressoide_packages_support/LPC54608J512_support/LPC546xx_list.xml deleted file mode 100644 index 00ff9d1..0000000 --- a/.mcuxpressoide_packages_support/LPC54608J512_support/LPC546xx_list.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/.mcuxpressoide_packages_support/LPC54608J512_support/crt_directory.dtd b/.mcuxpressoide_packages_support/LPC54608J512_support/crt_directory.dtd deleted file mode 100644 index 82b67e1..0000000 --- a/.mcuxpressoide_packages_support/LPC54608J512_support/crt_directory.dtd +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/.mcuxpressoide_packages_support/LPC54608J512_support/crt_infolist.dtd b/.mcuxpressoide_packages_support/LPC54608J512_support/crt_infolist.dtd deleted file mode 100644 index 26843dc..0000000 --- a/.mcuxpressoide_packages_support/LPC54608J512_support/crt_infolist.dtd +++ /dev/null @@ -1,279 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.mcuxpressoide_packages_support/LPC54608J512_support/info.properties b/.mcuxpressoide_packages_support/LPC54608J512_support/info.properties deleted file mode 100644 index af61a94..0000000 --- a/.mcuxpressoide_packages_support/LPC54608J512_support/info.properties +++ /dev/null @@ -1,7 +0,0 @@ -#MCUXpresso IDE part support -#Tue Apr 25 15:39:22 PDT 2023 -sdk.id=SDK_2.x_LPCXpresso54608 -sdk.build=303 2019-12-19 -device.version=1.0.0 -sdk.version=2.7.0 -device.id=LPC54608J512 diff --git a/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/MIMXRT1060_dir_part.xml b/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/MIMXRT1060_dir_part.xml deleted file mode 100644 index 22e40ba..0000000 --- a/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/MIMXRT1060_dir_part.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/MIMXRT1060_list.xml b/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/MIMXRT1060_list.xml deleted file mode 100644 index ea6460b..0000000 --- a/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/MIMXRT1060_list.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/MIMXRT1062_internal.xml b/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/MIMXRT1062_internal.xml deleted file mode 100644 index a99a8dc..0000000 --- a/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/MIMXRT1062_internal.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - MIMXRT1062xxxxA - MIMXRT1060 - NXP - - - - - - - - - Cortex-M7 - Cortex-M - - - diff --git a/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/crt_directory.dtd b/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/crt_directory.dtd deleted file mode 100644 index 82b67e1..0000000 --- a/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/crt_directory.dtd +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/crt_infolist.dtd b/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/crt_infolist.dtd deleted file mode 100644 index 26843dc..0000000 --- a/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/crt_infolist.dtd +++ /dev/null @@ -1,279 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/info.properties b/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/info.properties deleted file mode 100644 index 42bb766..0000000 --- a/.mcuxpressoide_packages_support/MIMXRT1062xxxxA_support/info.properties +++ /dev/null @@ -1,7 +0,0 @@ -#MCUXpresso IDE part support -#Tue Apr 25 15:39:23 PDT 2023 -sdk.id=SDK_2.x_MIMXRT1060-EVKB -sdk.build=679 2023-03-27 -device.version=1.0.0 -sdk.version=2.13.1 -device.id=MIMXRT1062xxxxA diff --git a/.mcuxpressoide_packages_support/crt_directory.dtd b/.mcuxpressoide_packages_support/crt_directory.dtd deleted file mode 100644 index 82b67e1..0000000 --- a/.mcuxpressoide_packages_support/crt_directory.dtd +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/.mcuxpressoide_packages_support/crt_directory.xml b/.mcuxpressoide_packages_support/crt_directory.xml deleted file mode 100644 index 4105d45..0000000 --- a/.mcuxpressoide_packages_support/crt_directory.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/.mcuxpressoide_packages_support/crt_infolist.dtd b/.mcuxpressoide_packages_support/crt_infolist.dtd deleted file mode 100644 index 26843dc..0000000 --- a/.mcuxpressoide_packages_support/crt_infolist.dtd +++ /dev/null @@ -1,279 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.mcuxpressoide_packages_support/info.properties b/.mcuxpressoide_packages_support/info.properties deleted file mode 100644 index 66a3b25..0000000 --- a/.mcuxpressoide_packages_support/info.properties +++ /dev/null @@ -1,5 +0,0 @@ -#MCUXpresso IDE -#Tue Apr 25 15:39:22 PDT 2023 -product.name=MCUXpresso IDE v11.7.0 [Build 9198] [2023-01-17] -product.version=11.7.0 -product.build=9198 diff --git a/.mcuxpressoide_packages_support/readme.txt b/.mcuxpressoide_packages_support/readme.txt deleted file mode 100644 index 00460b7..0000000 --- a/.mcuxpressoide_packages_support/readme.txt +++ /dev/null @@ -1,2 +0,0 @@ -This folder is automatically created and contains the SDK part support for the IDE -*** DO NOT REMOVE OR MODIFY, YOUR CHANGES WILL BE OVERWRITTEN ON SDK REFRESH *** \ No newline at end of file diff --git a/Middleware/FreeRTOS/transport_mbedtls/using_mbedtls.c b/Middleware/FreeRTOS/transport_mbedtls/using_mbedtls.c index d628e3f..c9ffd1b 100644 --- a/Middleware/FreeRTOS/transport_mbedtls/using_mbedtls.c +++ b/Middleware/FreeRTOS/transport_mbedtls/using_mbedtls.c @@ -626,6 +626,13 @@ static TlsTransportStatus_t tlsSetup( NetworkContext_t * pNetworkContext, mbedtls_ssl_conf_cert_profile( &( pNetworkContext->sslContext.config ), &( pNetworkContext->sslContext.certProfile ) ); + /* Only use this cipher suite to connect to the broker. */ + const int ciphersuites[] = { + MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, + 0 /* End of list. */ + }; + mbedtls_ssl_conf_ciphersuites( &( pNetworkContext->sslContext.config ), ciphersuites ); + /* Parse the server root CA certificate into the SSL context. */ mbedtlsError = mbedtls_x509_crt_parse( &( pNetworkContext->sslContext.rootCa ), pNetworkCredentials->pRootCa,