From 70757a861493615a3c685c8af235c1088f88f5c0 Mon Sep 17 00:00:00 2001 From: Rohit Madan <108629390+rohitmadan07@users.noreply.github.com> Date: Tue, 15 Oct 2024 09:33:24 +0530 Subject: [PATCH 1/5] Add readme.url for corePKCS11 Windows Simulator Demo (#1279) --- FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/readme.url | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/readme.url diff --git a/FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/readme.url b/FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/readme.url new file mode 100644 index 00000000000..282883b64dd --- /dev/null +++ b/FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/readme.url @@ -0,0 +1,5 @@ +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,11 +[InternetShortcut] +IDList= +URL=https://www.freertos.org/Documentation/03-Libraries/03-FreeRTOS-core/08-corePKCS11/03-corePKCS11-demos/04-Objects-demo \ No newline at end of file From 5fb0889c7b6dc371e65d2cce5c034b71bb8c1f80 Mon Sep 17 00:00:00 2001 From: Dakshit Babbar <100972343+DakshitBabbar@users.noreply.github.com> Date: Tue, 15 Oct 2024 10:16:11 +0530 Subject: [PATCH 2/5] Update readme for corePKCS MQTT Mutual Auth Demo (#1276) Co-authored-by: Dakshit Babbar --- .../corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/README.md b/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/README.md index e718c3f6271..61a9d939ff7 100644 --- a/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/README.md +++ b/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/README.md @@ -1,4 +1,6 @@ -See https://freertos.org/pkcs11/ for further information. +See [here](https://freertos.org/Documentation/03-Libraries/03-FreeRTOS-core/08-corePKCS11/03-corePKCS11-demos/01-Mutual-authentication-demo) for detailed instructions on how to run the demo. + +See [here](https://freertos.org/pkcs11/) for further information. Contains projects that demonstrate the PKCS #11 library. In order to run the mutual authentication demo, please convert the certificate and key PEM files associated with your IoT Thing, into a binary format DER. From 592fd043a322042f79e5974e1163bf9e21efe605 Mon Sep 17 00:00:00 2001 From: Rohit Madan <108629390+rohitmadan07@users.noreply.github.com> Date: Tue, 15 Oct 2024 10:16:36 +0530 Subject: [PATCH 3/5] Fix compilation issue for FreeRTOS Plus WolfSSL demo (#1278) * Fix compilation issue for FreeRTOS Plus WolfSSL demo * Upgrade VS toolset * Remove vcxproj files from formatting check --------- Co-authored-by: kar-rahul-aws --- .github/workflows/ci.yml | 2 +- ...TOS_Plus_WolfSSL_Windows_Simulator.vcxproj | 444 +++++----- ..._WolfSSL_Windows_Simulator.vcxproj.filters | 770 +++++++++--------- 3 files changed, 604 insertions(+), 612 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9efe893562..777256ad0a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: - name: Check Formatting uses: FreeRTOS/CI-CD-Github-Actions/formatting@main with: - exclude-dirs: ethernet, drivers, FreeRTOS/Demo + exclude-dirs: ethernet, drivers, FreeRTOS/Demo, FreeRTOS-Plus/Demo spell-check: runs-on: ubuntu-latest diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/FreeRTOS_Plus_WolfSSL_Windows_Simulator.vcxproj b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/FreeRTOS_Plus_WolfSSL_Windows_Simulator.vcxproj index 60fdd042087..bdc65375cff 100644 --- a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/FreeRTOS_Plus_WolfSSL_Windows_Simulator.vcxproj +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/FreeRTOS_Plus_WolfSSL_Windows_Simulator.vcxproj @@ -1,224 +1,222 @@ - - - - - Debug_with_Libslirp - Win32 - - - Debug - Win32 - - - - 16.0 - Win32Proj - {c8144d60-5005-4111-841e-fa3529f84a8b} - FreeRTOSPlusWolfSSLVisualStudio_StaticProjects - 10.0 - - - - Application - true - v142 - Unicode - - - Application - true - v142 - Unicode - - - - - - - - - - - - - - - true - - - true - - - - Level3 - true - WIN32;WIN32_LEAN_AND_MEAN;WOLFSSL_USER_SETTINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;WOLFSSL_IGNORE_FILE_WARN - true - ..\..\ThirdParty\WolfSSL;.;%(AdditionalIncludeDirectories) - - - Console - true - Bcrypt.lib;%(AdditionalDependencies) - - - - - Level3 - true - WOLFSSL_USER_SETTINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;WOLFSSL_IGNORE_FILE_WARN - true - ..\..\ThirdParty\WolfSSL;.;%(AdditionalIncludeDirectories) - - - Console - true - Bcrypt.lib;Iphlpapi.lib;Ws2_32.lib;%(AdditionalDependencies) - - - xcopy /y /d "..\..\ThirdParty\glib\build\glib\glib-2.0-0.dll" "$(OutDir)" -xcopy /y /d "..\..\ThirdParty\glib\build\subprojects\proxy-libintl\intl-8.dll" "$(OutDir)" -xcopy /y /d "..\..\ThirdParty\glib\build\subprojects\pcre2-10.42\pcre2-8-0.dll" "$(OutDir)" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {c90e6cc5-818b-4c97-8876-0986d989387c} - - - {72c209c4-49a4-4942-a201-44706c9d77ec} - - - {be362ac0-b10b-4276-b84e-6304652ba228} - - - - - - - - + + + + + Debug_with_Libslirp + Win32 + + + Debug + Win32 + + + + 16.0 + Win32Proj + {c8144d60-5005-4111-841e-fa3529f84a8b} + FreeRTOSPlusWolfSSLVisualStudio_StaticProjects + 10.0 + + + + Application + true + v143 + Unicode + + + Application + true + v143 + Unicode + + + + + + + + + + + + + + + true + + + true + + + + Level3 + true + WIN32;WIN32_LEAN_AND_MEAN;WOLFSSL_USER_SETTINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;WOLFSSL_IGNORE_FILE_WARN + true + ..\..\ThirdParty\WolfSSL;.;%(AdditionalIncludeDirectories) + + + Console + true + Bcrypt.lib;%(AdditionalDependencies) + + + + + Level3 + true + WOLFSSL_USER_SETTINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;WOLFSSL_IGNORE_FILE_WARN + true + ..\..\ThirdParty\WolfSSL;.;%(AdditionalIncludeDirectories) + + + Console + true + Bcrypt.lib;Iphlpapi.lib;Ws2_32.lib;%(AdditionalDependencies) + + + xcopy /y /d "..\..\ThirdParty\glib\build\glib\glib-2.0-0.dll" "$(OutDir)" +xcopy /y /d "..\..\ThirdParty\glib\build\subprojects\proxy-libintl\intl-8.dll" "$(OutDir)" +xcopy /y /d "..\..\ThirdParty\glib\build\subprojects\pcre2-10.42\pcre2-8-0.dll" "$(OutDir)" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {c90e6cc5-818b-4c97-8876-0986d989387c} + + + {72c209c4-49a4-4942-a201-44706c9d77ec} + + + {be362ac0-b10b-4276-b84e-6304652ba228} + + + + + + + + \ No newline at end of file diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/FreeRTOS_Plus_WolfSSL_Windows_Simulator.vcxproj.filters b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/FreeRTOS_Plus_WolfSSL_Windows_Simulator.vcxproj.filters index 151f3999c3e..37bfee159b0 100644 --- a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/FreeRTOS_Plus_WolfSSL_Windows_Simulator.vcxproj.filters +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/FreeRTOS_Plus_WolfSSL_Windows_Simulator.vcxproj.filters @@ -1,389 +1,383 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - {0f203ff4-373b-4655-952c-8c02392c935b} - - - {a5051803-872c-41c6-ac09-0672c69946a1} - - - - - Source Files - - - Header Files - - - Header Files - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - - - Source Files - - - Source Files - - - Source Files - - - wolfSSL - - - wolfSSL - - - wolfSSL - - - wolfSSL - - - wolfSSL - - - wolfSSL - - - wolfSSL - - - wolfSSL - - - wolfSSL - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - wolfSSL\wolfcrypt - - - - - Header Files - - + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + {0f203ff4-373b-4655-952c-8c02392c935b} + + + {a5051803-872c-41c6-ac09-0672c69946a1} + + + + + Source Files + + + Header Files + + + Header Files + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + + + Source Files + + + Source Files + + + Source Files + + + wolfSSL + + + wolfSSL + + + wolfSSL + + + wolfSSL + + + wolfSSL + + + wolfSSL + + + wolfSSL + + + wolfSSL + + + wolfSSL + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + wolfSSL\wolfcrypt + + + Source Files + + + + + Header Files + + \ No newline at end of file From d6274466efdb37461ec14f3b765c895b6ed5487d Mon Sep 17 00:00:00 2001 From: Dakshit Babbar <100972343+DakshitBabbar@users.noreply.github.com> Date: Mon, 21 Oct 2024 10:22:29 +0530 Subject: [PATCH 4/5] Populate RSA key attributes in mbedtls context (#1287) * Populate RSA key from mbedtls context to support TLSv1.3 * Fix formatting --------- Co-authored-by: Rahul Kar --- .../network_transport/mbedtls_pk_pkcs11.c | 34 +++++++++---------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/FreeRTOS-Plus/Source/Application-Protocols/network_transport/mbedtls_pk_pkcs11.c b/FreeRTOS-Plus/Source/Application-Protocols/network_transport/mbedtls_pk_pkcs11.c index 1cea0e9d776..b352d26aa54 100644 --- a/FreeRTOS-Plus/Source/Application-Protocols/network_transport/mbedtls_pk_pkcs11.c +++ b/FreeRTOS-Plus/Source/Application-Protocols/network_transport/mbedtls_pk_pkcs11.c @@ -1062,24 +1062,22 @@ static CK_RV p11_rsa_ctx_init( mbedtls_pk_context * pk, xResult = CKR_FUNCTION_FAILED; } - /* - * TODO: corePKCS11 does not allow exporting RSA public attributes. - * This function should be updated to properly initialize the - * mbedtls_rsa_context when this is addressed. - */ - - /* CK_ATTRIBUTE pxAttrs[ 2 ] = */ - /* { */ - /* { .type = CKA_MODULUS, .ulValueLen = 0, .pValue = NULL }, */ - /* { .type = CKA_PUBLIC_EXPONENT, .ulValueLen = 0, .pValue = NULL }, */ - /* { .type = CKA_PRIME_1, .ulValueLen = 0, .pValue = NULL }, */ - /* { .type = CKA_PRIME_2, .ulValueLen = 0, .pValue = NULL }, */ - /* { .type = CKA_EXPONENT_1, .ulValueLen = 0, .pValue = NULL }, */ - /* { .type = CKA_EXPONENT_2, .ulValueLen = 0, .pValue = NULL }, */ - /* { .type = CKA_COEFFICIENT, .ulValueLen = 0, .pValue = NULL }, */ - /* }; */ - - ( void ) pxMbedRsaCtx; + CK_ATTRIBUTE pxAttrs[ 8 ] = + { + { .type = CKA_MODULUS, .ulValueLen = sizeof( mbedtls_mpi ), .pValue = &( pxMbedRsaCtx->N ) }, + { .type = CKA_PUBLIC_EXPONENT, .ulValueLen = sizeof( mbedtls_mpi ), .pValue = &( pxMbedRsaCtx->E ) }, + { .type = CKA_PRIME_1, .ulValueLen = sizeof( mbedtls_mpi ), .pValue = &( pxMbedRsaCtx->P ) }, + { .type = CKA_PRIME_2, .ulValueLen = sizeof( mbedtls_mpi ), .pValue = &( pxMbedRsaCtx->Q ) }, + { .type = CKA_PRIVATE_EXPONENT, .ulValueLen = sizeof( mbedtls_mpi ), .pValue = &( pxMbedRsaCtx->D ) }, + { .type = CKA_EXPONENT_1, .ulValueLen = sizeof( mbedtls_mpi ), .pValue = &( pxMbedRsaCtx->DP ) }, + { .type = CKA_EXPONENT_2, .ulValueLen = sizeof( mbedtls_mpi ), .pValue = &( pxMbedRsaCtx->DQ ) }, + { .type = CKA_COEFFICIENT, .ulValueLen = sizeof( mbedtls_mpi ), .pValue = &( pxMbedRsaCtx->QP ) }, + }; + + xResult = pxFunctionList->C_GetAttributeValue( xSessionHandle, + xPkHandle, + pxAttrs, + sizeof( pxAttrs ) / sizeof( CK_ATTRIBUTE ) ); if( xResult == CKR_OK ) { From e13d6abc7898711adc4ba73386b03e093e856fdc Mon Sep 17 00:00:00 2001 From: Bhoomika R S Date: Fri, 25 Oct 2024 15:54:58 +0530 Subject: [PATCH 5/5] Add readme.url for demos (#1289) Add/update readme.url for the following FreeRTOS demos: Device Defender Demo Device Shadow Demo Fleet Provisioning (CSR) Demo Jobs Demo OTA Over HTTP Demo OTA Over MQTT Demo Cellular Interface Demo Trace CLI Demo TCP/UDP CLI Demo WolfSSL Demo coreHTTP Demo corePKCS11 MQTT Mutual Auth Demo corePKCS11 Objects Demo coreSNTP Demo FreeRTOS+TCP Minimal Windows Simulator --- .../Device_Defender_Demo/readme.url | 5 +++++ .../{READ_ME_INSTRUCTIONS.url => readme.url} | 1 - .../CSR_Demo/readme.url | 5 +++++ .../Demo/AWS/Jobs_Windows_Simulator/Jobs_Demo/readme.url | 5 +++++ .../AWS/Ota_Windows_Simulator/Ota_Over_Http_Demo/readme.url | 5 +++++ .../AWS/Ota_Windows_Simulator/Ota_Over_Mqtt_Demo/readme.url | 5 +++++ .../readme.url | 5 +++++ .../{READ_ME.url => readme.url} | 6 +++--- .../FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/ReadMe.txt | 4 ++++ .../README_FIRST.txt | 5 ++--- .../{READ_ME.url => readme.url} | 6 +++--- FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/readme.url | 5 +++++ .../readme.url | 5 +++++ FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/readme.url | 2 +- FreeRTOS-Plus/Demo/coreSNTP_Windows_Simulator/readme.url | 5 +++++ 15 files changed, 58 insertions(+), 11 deletions(-) create mode 100644 FreeRTOS-Plus/Demo/AWS/Device_Defender_Windows_Simulator/Device_Defender_Demo/readme.url rename FreeRTOS-Plus/Demo/AWS/Device_Shadow_Windows_Simulator/Device_Shadow_Demo/{READ_ME_INSTRUCTIONS.url => readme.url} (99%) create mode 100644 FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/readme.url create mode 100644 FreeRTOS-Plus/Demo/AWS/Jobs_Windows_Simulator/Jobs_Demo/readme.url create mode 100644 FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Http_Demo/readme.url create mode 100644 FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Mqtt_Demo/readme.url create mode 100644 FreeRTOS-Plus/Demo/FreeRTOS_Cellular_Interface_Windows_Simulator/readme.url rename FreeRTOS-Plus/Demo/FreeRTOS_Plus_CLI_with_Trace_Windows_Simulator/{READ_ME.url => readme.url} (79%) rename FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/{READ_ME.url => readme.url} (89%) create mode 100644 FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/readme.url create mode 100644 FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/readme.url create mode 100644 FreeRTOS-Plus/Demo/coreSNTP_Windows_Simulator/readme.url diff --git a/FreeRTOS-Plus/Demo/AWS/Device_Defender_Windows_Simulator/Device_Defender_Demo/readme.url b/FreeRTOS-Plus/Demo/AWS/Device_Defender_Windows_Simulator/Device_Defender_Demo/readme.url new file mode 100644 index 00000000000..127ec1ee807 --- /dev/null +++ b/FreeRTOS-Plus/Demo/AWS/Device_Defender_Windows_Simulator/Device_Defender_Demo/readme.url @@ -0,0 +1,5 @@ +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,2 +[InternetShortcut] +IDList= +URL=https://www.freertos.org/iot-device-defender/index.html diff --git a/FreeRTOS-Plus/Demo/AWS/Device_Shadow_Windows_Simulator/Device_Shadow_Demo/READ_ME_INSTRUCTIONS.url b/FreeRTOS-Plus/Demo/AWS/Device_Shadow_Windows_Simulator/Device_Shadow_Demo/readme.url similarity index 99% rename from FreeRTOS-Plus/Demo/AWS/Device_Shadow_Windows_Simulator/Device_Shadow_Demo/READ_ME_INSTRUCTIONS.url rename to FreeRTOS-Plus/Demo/AWS/Device_Shadow_Windows_Simulator/Device_Shadow_Demo/readme.url index b9f4c099a53..f0bfbb594d6 100644 --- a/FreeRTOS-Plus/Demo/AWS/Device_Shadow_Windows_Simulator/Device_Shadow_Demo/READ_ME_INSTRUCTIONS.url +++ b/FreeRTOS-Plus/Demo/AWS/Device_Shadow_Windows_Simulator/Device_Shadow_Demo/readme.url @@ -3,4 +3,3 @@ Prop3=19,11 [InternetShortcut] IDList= URL=https://www.freertos.org/iot-device-shadow/index.html - diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/readme.url b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/readme.url new file mode 100644 index 00000000000..73b39c4609d --- /dev/null +++ b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/readme.url @@ -0,0 +1,5 @@ +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,2 +[InternetShortcut] +IDList= +URL=https://www.freertos.org/Documentation/03-Libraries/04-AWS-libraries/06-AWS-IoT-Fleet-Provisioning/03-Fleet-provisioning-demo diff --git a/FreeRTOS-Plus/Demo/AWS/Jobs_Windows_Simulator/Jobs_Demo/readme.url b/FreeRTOS-Plus/Demo/AWS/Jobs_Windows_Simulator/Jobs_Demo/readme.url new file mode 100644 index 00000000000..dc5a00fe2fd --- /dev/null +++ b/FreeRTOS-Plus/Demo/AWS/Jobs_Windows_Simulator/Jobs_Demo/readme.url @@ -0,0 +1,5 @@ +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,2 +[InternetShortcut] +IDList= +URL=https://www.freertos.org/Documentation/03-Libraries/04-AWS-libraries/04-AWS-IoT-Jobs/03-Jobs-demo diff --git a/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Http_Demo/readme.url b/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Http_Demo/readme.url new file mode 100644 index 00000000000..3b99946a8ed --- /dev/null +++ b/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Http_Demo/readme.url @@ -0,0 +1,5 @@ +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,2 +[InternetShortcut] +IDList= +URL=https://www.freertos.org/Documentation/03-Libraries/04-AWS-libraries/02-AWS-IoT-OTA/04-HTTP-demo diff --git a/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Mqtt_Demo/readme.url b/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Mqtt_Demo/readme.url new file mode 100644 index 00000000000..97e770d371a --- /dev/null +++ b/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Mqtt_Demo/readme.url @@ -0,0 +1,5 @@ +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,2 +[InternetShortcut] +IDList= +URL=https://www.freertos.org/Documentation/03-Libraries/04-AWS-libraries/02-AWS-IoT-OTA/03-MQTT-demo diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Cellular_Interface_Windows_Simulator/readme.url b/FreeRTOS-Plus/Demo/FreeRTOS_Cellular_Interface_Windows_Simulator/readme.url new file mode 100644 index 00000000000..b5685f54de2 --- /dev/null +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Cellular_Interface_Windows_Simulator/readme.url @@ -0,0 +1,5 @@ +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,2 +[InternetShortcut] +IDList= +URL=https://www.freertos.org/Documentation/03-Libraries/03-FreeRTOS-core/09-Cellular-interface/03-Cellular-interface-demo diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_CLI_with_Trace_Windows_Simulator/READ_ME.url b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_CLI_with_Trace_Windows_Simulator/readme.url similarity index 79% rename from FreeRTOS-Plus/Demo/FreeRTOS_Plus_CLI_with_Trace_Windows_Simulator/READ_ME.url rename to FreeRTOS-Plus/Demo/FreeRTOS_Plus_CLI_with_Trace_Windows_Simulator/readme.url index 382f920623d..03c4528ec9b 100644 --- a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_CLI_with_Trace_Windows_Simulator/READ_ME.url +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_CLI_with_Trace_Windows_Simulator/readme.url @@ -1,5 +1,5 @@ -[InternetShortcut] -URL=http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_Trace/Free_RTOS_Plus_Trace_CLI_Example.shtml -IDList= [{000214A0-0000-0000-C000-000000000046}] Prop3=19,2 +[InternetShortcut] +IDList= +URL=http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_Trace/Free_RTOS_Plus_Trace_CLI_Example.html diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/ReadMe.txt b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/ReadMe.txt index 0eb0f7392f4..1e3ac06aa2b 100644 --- a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/ReadMe.txt +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/ReadMe.txt @@ -23,6 +23,10 @@ The TCP client example included in the minimal project is described on the following URL: http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_Echo_Clients.html +The TCP server example included in the minimal project is described on the +following URL: +https://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_Echo_Server.html + A description of the FreeRTOS+TCP source code directory is provided on the following URL: http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_Networking_Tutorial_Source_Code_Organisation.html diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_UDP_Mode_CLI_Windows_Simulator/README_FIRST.txt b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_UDP_Mode_CLI_Windows_Simulator/README_FIRST.txt index c184f495b6d..2aa80827559 100644 --- a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_UDP_Mode_CLI_Windows_Simulator/README_FIRST.txt +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_UDP_Mode_CLI_Windows_Simulator/README_FIRST.txt @@ -1,11 +1,10 @@ This demo is documented on the following web page: -http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/Embedded_Ethernet_Examples/RTOS_UDP_CLI_Windows_Simulator.shtml +http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/Embedded_Ethernet_Examples/RTOS_UDP_CLI_Windows_Simulator.html The FreeRTOS+UDP API is documented on the following web page: -http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/FreeRTOS_UDP_API_Functions.shtml +http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/FreeRTOS_UDP_API_Functions.html Other information, including a FreeRTOS+UDP primer, a description of the directory structure, and a glossary of networking terminology, can be found in the FreeRTOS+UDP portal: http://www.FreeRTOS.org/udp - diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/READ_ME.url b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/readme.url similarity index 89% rename from FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/READ_ME.url rename to FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/readme.url index 967308be8da..b7378da335f 100644 --- a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/READ_ME.url +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_WolfSSL_Windows_Simulator/readme.url @@ -1,5 +1,5 @@ -[InternetShortcut] -URL=http://www.freertos.org/FreeRTOS-Plus/WolfSSL/FreeRTOS_WolfSSL_Example.shtml -IDList= [{000214A0-0000-0000-C000-000000000046}] Prop3=19,2 +[InternetShortcut] +IDList= +URL=http://www.freertos.org/FreeRTOS-Plus/WolfSSL/FreeRTOS_WolfSSL_Example.html diff --git a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/readme.url b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/readme.url new file mode 100644 index 00000000000..b7c2130af1b --- /dev/null +++ b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/readme.url @@ -0,0 +1,5 @@ +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,2 +[InternetShortcut] +IDList= +URL=https://www.freertos.org/Documentation/03-Libraries/03-FreeRTOS-core/04-coreHTTP/03-coreHTTP-demos/01-coreHTTP-demo diff --git a/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/readme.url b/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/readme.url new file mode 100644 index 00000000000..78f349fe565 --- /dev/null +++ b/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/readme.url @@ -0,0 +1,5 @@ +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,2 +[InternetShortcut] +IDList= +URL=https://www.freertos.org/Documentation/03-Libraries/03-FreeRTOS-core/08-corePKCS11/03-corePKCS11-demos/01-Mutual-authentication-demo diff --git a/FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/readme.url b/FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/readme.url index 282883b64dd..b50ce962f61 100644 --- a/FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/readme.url +++ b/FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/readme.url @@ -2,4 +2,4 @@ Prop3=19,11 [InternetShortcut] IDList= -URL=https://www.freertos.org/Documentation/03-Libraries/03-FreeRTOS-core/08-corePKCS11/03-corePKCS11-demos/04-Objects-demo \ No newline at end of file +URL=https://www.freertos.org/Documentation/03-Libraries/03-FreeRTOS-core/08-corePKCS11/03-corePKCS11-demos/04-Objects-demo diff --git a/FreeRTOS-Plus/Demo/coreSNTP_Windows_Simulator/readme.url b/FreeRTOS-Plus/Demo/coreSNTP_Windows_Simulator/readme.url new file mode 100644 index 00000000000..c47aacb5046 --- /dev/null +++ b/FreeRTOS-Plus/Demo/coreSNTP_Windows_Simulator/readme.url @@ -0,0 +1,5 @@ +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,2 +[InternetShortcut] +IDList= +URL=https://www.freertos.org/Documentation/03-Libraries/03-FreeRTOS-core/05-coreSNTP/04-coreSNTP-demo