Skip to content

Commit bfa6667

Browse files
disa6302caihy0414
andauthored
Remove pIotCoreCertificateId usage from samples. (#1882)
* Modify compilation errors,when IOT_CORE_ENABLE_CREDENTIALS is enabled * Use llu * Remove CertificaqteId usgae in sample * Remove cert id usage --------- Co-authored-by: caihy0414 <caihy0414@thundersoft.com>
1 parent 0ae9ec6 commit bfa6667

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

samples/Common.c

+1-6
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)