Skip to content

Commit 29fdd0b

Browse files
committed
Resolve PR comments
1 parent d5e011a commit 29fdd0b

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
- [#1929](https://github.com/aws/aws-iot-device-sdk-embedded-C/pull/1929) This release brings the following changes:
88
- Includes [202406.01-LTS](https://github.com/FreeRTOS/FreeRTOS-LTS/releases/tag/202406.01-LTS) versions of coreMQTT, corePKCS11, coreHTTP, coreJSON, backoffAlgorithm, AWS IoT Device Shadow, AWS IoT Jobs, AWS IoT Device Defender, AWS IoT Fleet Provisioning and SigV4 libraries.
9-
- Removes the OTA library and OTA demo . They are planned to be replaced by [aws-iot-core-mqtt-file-streams-embedded-c](https://github.com/aws/aws-iot-core-mqtt-file-streams-embedded-c) in future releases following [this announcement](https://aws.amazon.com/about-aws/whats-new/2023/12/freertos-modular-composable-ota-libraries/). To learn more about FreeRTOS OTA libraries, visit the [FreeRTOS OTA page](https://freertos.org/freertos-core/over-the-air-updates/index.html). To get started, see the new OTA [reference demo](https://freertos.org/freertos-core/over-the-air-updates/mqtt-ota-agent-orchestrator.html).
9+
- Removes the OTA library and its associated demo.
10+
11+
NOTE: We recommend transitioning to the [new modular and composable OTA approach](https://freertos.org/Documentation/03-Libraries/07-Modular-over-the-air-updates/01-Over-the-air-updates) . To get started, see the new [OTA reference demo](https://github.com/FreeRTOS/Lab-Project-ota-example-for-AWS-IoT-Core?tab=readme-ov-file).
1012
- Update readme instructions for demos for better user experience.
1113

1214
### Minor Changes

demos/fleet_provisioning/fleet_provisioning_keys_cert/pkcs11_operations.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,8 @@ static CK_RV provisionPrivateKey( CK_SESSION_HANDLE session,
537537
mbedtls_pk_type_t mbedKeyType = MBEDTLS_PK_NONE;
538538
int mbedResult = 0;
539539
mbedtls_pk_context mbedPkContext = { 0 };
540-
mbedtls_ctr_drbg_context ctr_drbg;
541-
mbedtls_entropy_context entropy;
540+
mbedtls_ctr_drbg_context ctr_drbg = { 0 };
541+
mbedtls_entropy_context entropy = { 0 };
542542

543543
mbedtls_pk_init( &mbedPkContext );
544544
mbedtls_entropy_init( &entropy );

demos/fleet_provisioning/fleet_provisioning_with_csr/pkcs11_operations.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ static int extractEcPublicKey( CK_SESSION_HANDLE p11Session,
239239
* @param[in] pHash Data to sign.
240240
* @param[in] hashLen Length of #pHash.
241241
* @param[out] pSig The signature
242+
* @param[in] sig_size Unused
242243
* @param[out] pSigLen The length of the signature.
243244
* @param[in] pRng Unused.
244245
* @param[in] pRngContext Unused.
@@ -637,8 +638,8 @@ static CK_RV provisionPrivateKey( CK_SESSION_HANDLE session,
637638
mbedtls_pk_type_t mbedKeyType = MBEDTLS_PK_NONE;
638639
int mbedResult = 0;
639640
mbedtls_pk_context mbedPkContext = { 0 };
640-
mbedtls_ctr_drbg_context ctr_drbg;
641-
mbedtls_entropy_context entropy;
641+
mbedtls_ctr_drbg_context ctr_drbg = { 0 };
642+
mbedtls_entropy_context entropy = { 0 };
642643

643644
mbedtls_pk_init( &mbedPkContext );
644645
mbedtls_entropy_init( &entropy );
@@ -916,7 +917,6 @@ static int32_t privateKeySigningCallback( mbedtls_pk_context * pContext,
916917
int ( * pRng )( void *, unsigned char *, size_t ),
917918
void * pRngContext )
918919
{
919-
( void ) sig_size;
920920
CK_RV ret = CKR_OK;
921921
int32_t result = 0;
922922
CK_MECHANISM mech = { 0 };
@@ -929,6 +929,7 @@ static int32_t privateKeySigningCallback( mbedtls_pk_context * pContext,
929929
( void ) ( pRng );
930930
( void ) ( pRngContext );
931931
( void ) ( mdAlg );
932+
( void ) ( sig_size );
932933

933934
/* Sanity check buffer length. */
934935
if( hashLen > sizeof( toBeSigned ) )

platform/posix/transport/src/mbedtls_pkcs11_posix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,6 @@ static int32_t privateKeySigningCallback( mbedtls_pk_context * pContext,
675675
size_t ),
676676
void * pRngContext )
677677
{
678-
( void ) sig_size;
679678
CK_RV ret = CKR_OK;
680679
int32_t result = 0;
681680
MbedtlsPkcs11Context_t * pMbedtlsPkcs11Context = ( MbedtlsPkcs11Context_t * ) pContext->pk_ctx;
@@ -688,6 +687,7 @@ static int32_t privateKeySigningCallback( mbedtls_pk_context * pContext,
688687
( void ) ( pRng );
689688
( void ) ( pRngContext );
690689
( void ) ( mdAlg );
690+
( void ) ( sig_size );
691691

692692
assert( pContext != NULL );
693693
assert( pHash != NULL );

0 commit comments

Comments
 (0)