Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: sastoken.c
- Revision:
- 1:9190c0f4d23a
- Parent:
- 0:fa2de1b79154
- Child:
- 6:c55b013dfc2a
diff -r fa2de1b79154 -r 9190c0f4d23a sastoken.c --- a/sastoken.c Fri Apr 08 12:01:36 2016 -0700 +++ b/sastoken.c Sun Apr 24 16:41:14 2016 -0700 @@ -32,7 +32,7 @@ (scope == NULL) || (keyName == NULL)) { - LogError("Invalid Parameter to SASToken_Create. handle key: %p, handle scope: %p, handle keyName: %p\r\n", key, scope, keyName); + LogError("Invalid Parameter to SASToken_Create. handle key: %p, handle scope: %p, handle keyName: %p", key, scope, keyName); } else { @@ -41,14 +41,14 @@ if ((decodedKey = Base64_Decoder(STRING_c_str(key))) == NULL) { /*Codes_SRS_SASTOKEN_06_030: [If there is an error in the decoding then SASToken_Create shall return NULL.]*/ - LogError("Unable to decode the key for generating the SAS.\r\n"); + LogError("Unable to decode the key for generating the SAS."); } else { /*Codes_SRS_SASTOKEN_06_026: [If the conversion to string form fails for any reason then SASToken_Create shall return NULL.]*/ if (size_tToString(tokenExpirationTime, sizeof(tokenExpirationTime), expiry) != 0) { - LogError("For some reason converting seconds to a string failed. No SAS can be generated.\r\n"); + LogError("For some reason converting seconds to a string failed. No SAS can be generated."); } else { @@ -58,7 +58,7 @@ ((toBeHashed = STRING_new()) == NULL) || ((result = STRING_new()) == NULL)) { - LogError("Unable to allocate memory to prepare SAS token.\r\n"); + LogError("Unable to allocate memory to prepare SAS token."); } else { @@ -69,7 +69,7 @@ (STRING_concat(toBeHashed, "\n") != 0) || (STRING_concat(toBeHashed, tokenExpirationTime) != 0)) { - LogError("Unable to build the input to the HMAC to prepare SAS token.\r\n"); + LogError("Unable to build the input to the HMAC to prepare SAS token."); STRING_delete(result); result = NULL; } @@ -102,7 +102,7 @@ (STRING_concat(result, "&skn=") != 0) || (STRING_concat_with_STRING(result, keyName) != 0)) { - LogError("Unable to build the SAS token.\r\n"); + LogError("Unable to build the SAS token."); STRING_delete(result); result = NULL; }