Skip to content

Commit

Permalink
uncrustify: Add fixes for uncrustify findings
Browse files Browse the repository at this point in the history
Our code should be aligned with uncrustify coding
style guidelines, this commit add the needed
fixes to do so.

Signed-off-by: Ahmed Ismail <[email protected]>
  • Loading branch information
AhmedIsmail02 committed Oct 18, 2023
1 parent 7e028a3 commit 48c08e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Projects/aws-iot-example/dev_mode_key_provisioning.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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 ) )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 48c08e8

Please sign in to comment.