mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-07-27 16:23:46 +00:00
Fix Fleet Provisioning demo flow issues (#1385)
* Fix Fleet Provisioning demo flow issues Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com> * Fix CI-check failures Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com> --------- Signed-off-by: RESG_XX <xiao-xuan.ngew.xc@renesas.com>
This commit is contained in:
@@ -606,8 +606,6 @@ int prvFleetProvisioningTask( void * pvParameters )
|
||||
{
|
||||
LogError( ( "Failed to generate Key and Certificate Signing Request." ) );
|
||||
}
|
||||
|
||||
xPkcs11CloseSession( xP11Session );
|
||||
}
|
||||
|
||||
/**** Connect to AWS IoT Core with provisioning claim credentials *****/
|
||||
@@ -825,6 +823,8 @@ int prvFleetProvisioningTask( void * pvParameters )
|
||||
|
||||
/**** Retry in case of failure ****************************************/
|
||||
|
||||
xPkcs11CloseSession( xP11Session );
|
||||
|
||||
/* Increment the demo run count. */
|
||||
ulDemoRunCount++;
|
||||
|
||||
|
||||
@@ -392,11 +392,6 @@ bool xPkcs11CloseSession( CK_SESSION_HANDLE xP11Session )
|
||||
xResult = xFunctionList->C_CloseSession( xP11Session );
|
||||
}
|
||||
|
||||
if( xResult == CKR_OK )
|
||||
{
|
||||
xResult = xFunctionList->C_Finalize( NULL );
|
||||
}
|
||||
|
||||
return( xResult == CKR_OK );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user