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. */