@@ -757,7 +757,7 @@ STATUS createSampleConfiguration(PCHAR channelName, SIGNALING_CHANNEL_ROLE_TYPE
757
757
CHK (NULL != (pSampleConfiguration = (PSampleConfiguration ) MEMCALLOC (1 , SIZEOF (SampleConfiguration ))), STATUS_NOT_ENOUGH_MEMORY );
758
758
759
759
#ifdef IOT_CORE_ENABLE_CREDENTIALS
760
- PCHAR pIotCoreCredentialEndPoint , pIotCoreCert , pIotCorePrivateKey , pIotCoreRoleAlias , pIotCoreThingName ;
760
+ PCHAR pIotCoreCredentialEndPoint , pIotCoreCert , pIotCorePrivateKey , pIotCoreRoleAlias ;
761
761
CHK_ERR ((pIotCoreCredentialEndPoint = GETENV (IOT_CORE_CREDENTIAL_ENDPOINT )) != NULL , STATUS_INVALID_OPERATION ,
762
762
"AWS_IOT_CORE_CREDENTIAL_ENDPOINT must be set" );
763
763
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
821
821
822
822
pSampleConfiguration -> channelInfo .version = CHANNEL_INFO_CURRENT_VERSION ;
823
823
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
829
824
pSampleConfiguration -> channelInfo .pKmsKeyId = NULL ;
830
825
pSampleConfiguration -> channelInfo .tagCount = 0 ;
831
826
pSampleConfiguration -> channelInfo .pTags = NULL ;
0 commit comments