- Timestamp:
- Jun 22, 2021, 9:00:19 PM (3 years ago)
- Location:
- azure_iot_hub_f767zi/trunk/azure_iot_sdk/c-utility/inc/azure_c_shared_utility
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
azure_iot_hub_f767zi/trunk/azure_iot_sdk/c-utility/inc/azure_c_shared_utility/crt_abstractions.h
r457 r464 6 6 7 7 #ifdef __cplusplus 8 #include <cstdint> 8 9 #include <cstdio> 9 10 #include <cstring> … … 11 12 #include <cmath> 12 13 #else // __cplusplus 14 #include <stdint.h> 13 15 #include <stdio.h> 14 16 #include <string.h> … … 96 98 MOCKABLE_FUNCTION(, int, unsignedIntToString, char*, destination, size_t, destinationSize, unsigned int, value); 97 99 MOCKABLE_FUNCTION(, int, size_tToString, char*, destination, size_t, destinationSize, size_t, value); 100 MOCKABLE_FUNCTION(, int, uint64_tToString, char*, destination, size_t, destinationSize, uint64_t, value); 98 101 99 102 /*following logic shall define the TOUPPER and ISDIGIT, we do that because the SDK is not happy with some Arduino implementation of it.*/ -
azure_iot_hub_f767zi/trunk/azure_iot_sdk/c-utility/inc/azure_c_shared_utility/sastoken.h
r457 r464 4 4 #ifndef SASTOKEN_H 5 5 #define SASTOKEN_H 6 7 #include <stdint.h> 6 8 7 9 #ifdef __cplusplus … … 18 20 19 21 MOCKABLE_FUNCTION(, bool, SASToken_Validate, STRING_HANDLE, sasToken); 20 MOCKABLE_FUNCTION(, STRING_HANDLE, SASToken_Create, STRING_HANDLE, key, STRING_HANDLE, scope, STRING_HANDLE, keyName, size_t, expiry);21 MOCKABLE_FUNCTION(, STRING_HANDLE, SASToken_CreateString, const char*, key, const char*, scope, const char*, keyName, size_t, expiry);22 MOCKABLE_FUNCTION(, STRING_HANDLE, SASToken_Create, STRING_HANDLE, key, STRING_HANDLE, scope, STRING_HANDLE, keyName, uint64_t, expiry); 23 MOCKABLE_FUNCTION(, STRING_HANDLE, SASToken_CreateString, const char*, key, const char*, scope, const char*, keyName, uint64_t, expiry); 22 24 23 25 #ifdef __cplusplus -
azure_iot_hub_f767zi/trunk/azure_iot_sdk/c-utility/inc/azure_c_shared_utility/shared_util_options.h
r457 r464 29 29 static STATIC_VAR_UNUSED const char* const OPTION_OPENSSL_CIPHER_SUITE = "CipherSuite"; 30 30 31 static STATIC_VAR_UNUSED const char* const OPTION_OPENSSL_ENGINE = "Engine"; 32 static STATIC_VAR_UNUSED const char* const OPTION_OPENSSL_PRIVATE_KEY_TYPE = "x509PrivatekeyType"; 33 34 typedef enum OPTION_OPENSSL_KEY_TYPE_TAG 35 { 36 KEY_TYPE_DEFAULT, 37 KEY_TYPE_ENGINE 38 } OPTION_OPENSSL_KEY_TYPE; 39 31 40 static STATIC_VAR_UNUSED const char* const SU_OPTION_X509_CERT = "x509certificate"; 32 41 static STATIC_VAR_UNUSED const char* const SU_OPTION_X509_PRIVATE_KEY = "x509privatekey"; … … 45 54 static STATIC_VAR_UNUSED const char* const OPTION_SET_TLS_RENEGOTIATION = "tls_renegotiation"; 46 55 47 // DEPRECATED: The underlying security library for your platform will use a secure TLS version 56 // DEPRECATED: The underlying security library for your platform will use a secure TLS version 48 57 // that in general should not be overridden with OPTION_TLS_VERSION. 49 58 static STATIC_VAR_UNUSED const char* const OPTION_TLS_VERSION = "tls_version"; -
azure_iot_hub_f767zi/trunk/azure_iot_sdk/c-utility/inc/azure_c_shared_utility/tickcounter.h
r457 r464 18 18 #endif /* __cplusplus */ 19 19 20 #if defined(_WIN32) || defined(__MBED__) || defined(__APPLE__)21 20 typedef uint_fast64_t tickcounter_ms_t; // Use 64-bit because of 32-bit is going to roll over back to zero after roughly 49.7 days that is not good for IoT devices which need keep running for months 22 #else23 typedef uint_fast32_t tickcounter_ms_t;24 #endif25 21 typedef struct TICK_COUNTER_INSTANCE_TAG *TICK_COUNTER_HANDLE; 26 22
Note:
See TracChangeset
for help on using the changeset viewer.