Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit 53be4fc

Browse files
committed
Update to 1.5.0
1 parent 6198d3a commit 53be4fc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=AzureIoTProtocol_HTTP
2-
version=1.3.9
2+
version=1.5.0
33
author=Microsoft
44
maintainer=Microsoft <[email protected]>
55
sentence=Azure HTTP protocol library for Arduino. For the Arduino MKR1000 or Zero and WiFi Shield 101, Adafruit Huzzah and Feather M0, or SparkFun Thing.

src/AzureIoTProtocol_HTTP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
#ifndef AZUREIOTPROTOCOLHTTP_H
55
#define AZUREIOTPROTOCOLHTTP_H
66

7-
#define AzureIoTProtocolHTTPVersion "1.3.9"
7+
#define AzureIoTProtocolHTTPVersion "1.5.0"
88

99
#endif //AZUREIOTPROTOCOLHTTP_H

src/azure_uhttp_c/httpapi_compact.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ HTTPAPI_RESULT HTTPAPI_SetOption(HTTP_HANDLE handle, const char* optionName, con
13101310
}
13111311
#endif // DO_NOT_COPY_TRUSTED_CERTS_STRING
13121312
}
1313-
else if (strcmp(SU_OPTION_X509_CERT, optionName) == 0)
1313+
else if (strcmp(SU_OPTION_X509_CERT, optionName) == 0 || strcmp(OPTION_X509_ECC_CERT, optionName) == 0)
13141314
{
13151315
int len;
13161316
if (http_instance->x509ClientCertificate)
@@ -1333,7 +1333,7 @@ HTTPAPI_RESULT HTTPAPI_SetOption(HTTP_HANDLE handle, const char* optionName, con
13331333
result = HTTPAPI_OK;
13341334
}
13351335
}
1336-
else if (strcmp(SU_OPTION_X509_PRIVATE_KEY, optionName) == 0)
1336+
else if (strcmp(SU_OPTION_X509_PRIVATE_KEY, optionName) == 0 || strcmp(OPTION_X509_ECC_KEY, optionName) == 0)
13371337
{
13381338
int len;
13391339
if (http_instance->x509ClientPrivateKey)
@@ -1476,7 +1476,7 @@ HTTPAPI_RESULT HTTPAPI_CloneOption(const char* optionName, const void* value, co
14761476
}
14771477
#endif // DO_NOT_COPY_TRUSTED_CERTS_STRING
14781478
}
1479-
else if (strcmp(SU_OPTION_X509_CERT, optionName) == 0)
1479+
else if (strcmp(SU_OPTION_X509_CERT, optionName) == 0 || strcmp(OPTION_X509_ECC_CERT, optionName) == 0)
14801480
{
14811481
certLen = strlen((const char*)value);
14821482
tempCert = (char*)malloc((certLen + 1) * sizeof(char));
@@ -1493,7 +1493,7 @@ HTTPAPI_RESULT HTTPAPI_CloneOption(const char* optionName, const void* value, co
14931493
result = HTTPAPI_OK;
14941494
}
14951495
}
1496-
else if (strcmp(SU_OPTION_X509_PRIVATE_KEY, optionName) == 0)
1496+
else if (strcmp(SU_OPTION_X509_PRIVATE_KEY, optionName) == 0 || strcmp(OPTION_X509_ECC_KEY, optionName) == 0)
14971497
{
14981498
certLen = strlen((const char*)value);
14991499
tempCert = (char*)malloc((certLen + 1) * sizeof(char));

0 commit comments

Comments
 (0)