Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: httpapi_compact.c
- Revision:
- 48:81866008bba4
- Parent:
- 45:1119d0f2c4d8
- Child:
- 49:6bb8b9a66642
--- a/httpapi_compact.c Thu Jul 12 18:10:56 2018 -0700 +++ b/httpapi_compact.c Tue Sep 11 11:15:08 2018 -0700 @@ -735,7 +735,7 @@ } else { - int countRetry; + int countRetry; /*Codes_SRS_HTTPAPI_COMPACT_21_033: [ If the whole process succeed, the HTTPAPI_ExecuteRequest shall retur HTTPAPI_OK. ]*/ result = HTTPAPI_OK; /*Codes_SRS_HTTPAPI_COMPACT_21_077: [ The HTTPAPI_ExecuteRequest shall wait, at least, 10 seconds for the SSL open process. ]*/ @@ -840,7 +840,7 @@ /*Codes_SRS_HTTPAPI_COMPACT_21_028: [ If the HTTPAPI_ExecuteRequest cannot send the request header, it shall return HTTPAPI_HTTP_HEADERS_FAILED. ]*/ else if ((result = conn_send_all(http_instance, (const unsigned char*)buf, strlen(buf))) == HTTPAPI_OK) { - size_t i; + size_t i; //Send default headers /*Codes_SRS_HTTPAPI_COMPACT_21_033: [ If the whole process succeed, the HTTPAPI_ExecuteRequest shall retur HTTPAPI_OK. ]*/ for (i = 0; ((i < headersCount) && (result == HTTPAPI_OK)); i++) @@ -1260,7 +1260,7 @@ } else if (strcmp("TrustedCerts", optionName) == 0) { - int len; + int len; if (http_instance->certificate) { @@ -1284,7 +1284,7 @@ } else if (strcmp(SU_OPTION_X509_CERT, optionName) == 0) { - int len; + int len; if (http_instance->x509ClientCertificate) { free(http_instance->x509ClientCertificate); @@ -1307,7 +1307,7 @@ } else if (strcmp(SU_OPTION_X509_PRIVATE_KEY, optionName) == 0) { - int len; + int len; if (http_instance->x509ClientPrivateKey) { free(http_instance->x509ClientPrivateKey);