From 48c08e8c422479cfbb16a51069d2a83c6028ebf6 Mon Sep 17 00:00:00 2001 From: Ahmed Ismail Date: Tue, 17 Oct 2023 16:01:20 +0100 Subject: [PATCH] uncrustify: Add fixes for uncrustify findings Our code should be aligned with uncrustify coding style guidelines, this commit add the needed fixes to do so. Signed-off-by: Ahmed Ismail --- Projects/aws-iot-example/dev_mode_key_provisioning.c | 2 ++ Projects/aws-iot-example/mqtt-agent-wrapper/mqtt_agent_task.c | 1 + 2 files changed, 3 insertions(+) diff --git a/Projects/aws-iot-example/dev_mode_key_provisioning.c b/Projects/aws-iot-example/dev_mode_key_provisioning.c index d9cad2ed..f52a7e46 100644 --- a/Projects/aws-iot-example/dev_mode_key_provisioning.c +++ b/Projects/aws-iot-example/dev_mode_key_provisioning.c @@ -1084,6 +1084,7 @@ CK_RV xProvisionDevice( CK_SESSION_HANDLE xSession, xResult = C_GetFunctionList( &pxFunctionList ); #if ( pkcs11configIMPORT_PRIVATE_KEYS_SUPPORTED == 1 ) + /* Attempt to clean-up old crypto objects, but only if private key import is * supported by this application, and only if the caller has provided new * objects to use instead. */ @@ -1117,6 +1118,7 @@ CK_RV xProvisionDevice( CK_SESSION_HANDLE xSession, } #if ( pkcs11configIMPORT_PRIVATE_KEYS_SUPPORTED == 1 ) + /* If this application supports importing private keys, and if a private * key has been provided by the caller, attempt to import it. */ if( ( xResult == CKR_OK ) && ( NULL != pxParams->pucClientPrivateKey ) ) diff --git a/Projects/aws-iot-example/mqtt-agent-wrapper/mqtt_agent_task.c b/Projects/aws-iot-example/mqtt-agent-wrapper/mqtt_agent_task.c index c397258a..cfe6ba28 100644 --- a/Projects/aws-iot-example/mqtt-agent-wrapper/mqtt_agent_task.c +++ b/Projects/aws-iot-example/mqtt-agent-wrapper/mqtt_agent_task.c @@ -290,6 +290,7 @@ static BaseType_t prvSocketConnect( NetworkContext_t * pxNetworkContext ) ServerInfo_t xServerInfo = { 0 }; #ifdef democonfigUSE_AWS_IOT_CORE_BROKER + /* ALPN protocols must be a NULL-terminated list of strings. Therefore, * the first entry will contain the actual ALPN protocol string while the * second entry must remain NULL. */