Microsoft Azure IoTHub client AMQP transport
Dependents: sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp iothub_client_sample_amqp ... more
This library implements the AMQP transport for Microsoft Azure IoTHub client. The code is replicated from https://github.com/Azure/azure-iot-sdks
Diff: iothubtransport_amqp_cbs_auth.c
- Revision:
- 41:71c01aa3df1a
- Parent:
- 34:51d158b409d2
- Child:
- 42:c2eaa912a28c
--- a/iothubtransport_amqp_cbs_auth.c Fri Aug 25 11:22:00 2017 -0700 +++ b/iothubtransport_amqp_cbs_auth.c Mon Sep 11 09:22:16 2017 -0700 @@ -265,7 +265,7 @@ { /* Codes_SRS_IOTHUBTRANSPORT_AMQP_AUTH_07_001: [ authentication_do_work() shall determine what credential type is used SAS_TOKEN or DEVICE_KEY by calling IoTHubClient_Auth_Get_Credential_Type ] */ IOTHUB_CREDENTIAL_TYPE cred_type = IoTHubClient_Auth_Get_Credential_Type(instance->authorization_module); - if (cred_type == IOTHUB_CREDENTIAL_TYPE_DEVICE_KEY) + if (cred_type == IOTHUB_CREDENTIAL_TYPE_DEVICE_KEY || cred_type == IOTHUB_CREDENTIAL_TYPE_DEVICE_AUTH) { double seconds_since_epoch; // Codes_SRS_IOTHUBTRANSPORT_AMQP_AUTH_09_053: [A STRING_HANDLE, referred to as `devices_path`, shall be created from the following parts: iothub_host_fqdn + "/devices/" + device_id] @@ -326,7 +326,7 @@ } } } - else if (cred_type == IOTHUB_CREDENTIAL_TYPE_X509) + else if (cred_type == IOTHUB_CREDENTIAL_TYPE_X509 || cred_type == IOTHUB_CREDENTIAL_TYPE_X509_ECC) { sas_token = NULL; result = RESULT_OK;