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:
xuan97z1
2026-01-30 08:38:44 +08:00
committed by GitHub
parent 81a6503dee
commit e83f1402d5
2 changed files with 2 additions and 7 deletions

View File

@@ -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++;

View File

@@ -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 );
}