Ignore:
Timestamp:
Jun 22, 2021, 9:00:19 PM (3 years ago)
Author:
coas-nagasima
Message:

WolfSSLとAzure IoT SDKを更新

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  
    66
    77#ifdef __cplusplus
     8#include <cstdint>
    89#include <cstdio>
    910#include <cstring>
     
    1112#include <cmath>
    1213#else // __cplusplus
     14#include <stdint.h>
    1315#include <stdio.h>
    1416#include <string.h>
     
    9698MOCKABLE_FUNCTION(, int, unsignedIntToString, char*, destination, size_t, destinationSize, unsigned int, value);
    9799MOCKABLE_FUNCTION(, int, size_tToString, char*, destination, size_t, destinationSize, size_t, value);
     100MOCKABLE_FUNCTION(, int, uint64_tToString, char*, destination, size_t, destinationSize, uint64_t, value);
    98101
    99102/*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  
    44#ifndef SASTOKEN_H
    55#define SASTOKEN_H
     6
     7#include <stdint.h>
    68
    79#ifdef __cplusplus
     
    1820
    1921    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);
    2224
    2325#ifdef __cplusplus
  • azure_iot_hub_f767zi/trunk/azure_iot_sdk/c-utility/inc/azure_c_shared_utility/shared_util_options.h

    r457 r464  
    2929    static STATIC_VAR_UNUSED const char* const OPTION_OPENSSL_CIPHER_SUITE = "CipherSuite";
    3030
     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
    3140    static STATIC_VAR_UNUSED const char* const SU_OPTION_X509_CERT = "x509certificate";
    3241    static STATIC_VAR_UNUSED const char* const SU_OPTION_X509_PRIVATE_KEY = "x509privatekey";
     
    4554    static STATIC_VAR_UNUSED const char* const OPTION_SET_TLS_RENEGOTIATION = "tls_renegotiation";
    4655
    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
    4857    // that in general  should not be overridden with OPTION_TLS_VERSION.
    4958    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  
    1818#endif /* __cplusplus */
    1919
    20 #if defined(_WIN32) || defined(__MBED__) || defined(__APPLE__)
    2120    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 #else
    23     typedef uint_fast32_t tickcounter_ms_t;
    24 #endif
    2521    typedef struct TICK_COUNTER_INSTANCE_TAG *TICK_COUNTER_HANDLE;
    2622
Note: See TracChangeset for help on using the changeset viewer.