@@ -757,7 +757,7 @@ STATUS createSampleConfiguration(PCHAR channelName, SIGNALING_CHANNEL_ROLE_TYPE
757757 CHK (NULL != (pSampleConfiguration = (PSampleConfiguration ) MEMCALLOC (1 , SIZEOF (SampleConfiguration ))), STATUS_NOT_ENOUGH_MEMORY );
758758
759759#ifdef IOT_CORE_ENABLE_CREDENTIALS
760- PCHAR pIotCoreCredentialEndPoint , pIotCoreCert , pIotCorePrivateKey , pIotCoreRoleAlias , pIotCoreThingName ;
760+ PCHAR pIotCoreCredentialEndPoint , pIotCoreCert , pIotCorePrivateKey , pIotCoreRoleAlias ;
761761 CHK_ERR ((pIotCoreCredentialEndPoint = GETENV (IOT_CORE_CREDENTIAL_ENDPOINT )) != NULL , STATUS_INVALID_OPERATION ,
762762 "AWS_IOT_CORE_CREDENTIAL_ENDPOINT must be set" );
763763 CHK_ERR ((pIotCoreCert = GETENV (IOT_CORE_CERT )) != NULL , STATUS_INVALID_OPERATION , "AWS_IOT_CORE_CERT must be set" );
@@ -821,11 +821,6 @@ STATUS createSampleConfiguration(PCHAR channelName, SIGNALING_CHANNEL_ROLE_TYPE
821821
822822 pSampleConfiguration -> channelInfo .version = CHANNEL_INFO_CURRENT_VERSION ;
823823 pSampleConfiguration -> channelInfo .pChannelName = channelName ;
824- #ifdef IOT_CORE_ENABLE_CREDENTIALS
825- if ((pIotCoreCertificateId = getenv (IOT_CORE_CERTIFICATE_ID )) != NULL ) {
826- pSampleConfiguration -> channelInfo .pChannelName = pIotCoreCertificateId ;
827- }
828- #endif
829824 pSampleConfiguration -> channelInfo .pKmsKeyId = NULL ;
830825 pSampleConfiguration -> channelInfo .tagCount = 0 ;
831826 pSampleConfiguration -> channelInfo .pTags = NULL ;
0 commit comments