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/wolfssl-4.7.0
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • azure_iot_hub_f767zi/trunk/wolfssl-4.7.0/wolfcrypt/src/logging.c

    r457 r464  
    112112#endif /* WOLFSSL_FUNC_TIME */
    113113
     114#ifdef HAVE_WC_INTROSPECTION
     115
     116const char *wolfSSL_configure_args(void) {
     117#ifdef LIBWOLFSSL_CONFIGURE_ARGS
     118  /* the spaces on either side are to make matching simple and efficient. */
     119  return " " LIBWOLFSSL_CONFIGURE_ARGS " ";
     120#else
     121  return NULL;
     122#endif
     123}
     124
     125const char *wolfSSL_global_cflags(void) {
     126#ifdef LIBWOLFSSL_GLOBAL_CFLAGS
     127  /* the spaces on either side are to make matching simple and efficient. */
     128  return " " LIBWOLFSSL_GLOBAL_CFLAGS " ";
     129#else
     130  return NULL;
     131#endif
     132}
     133
     134#endif /* HAVE_WC_INTROSPECTION */
     135
     136#ifdef HAVE_STACK_SIZE_VERBOSE
     137
     138THREAD_LS_T unsigned char *StackSizeCheck_myStack = NULL;
     139THREAD_LS_T size_t StackSizeCheck_stackSize = 0;
     140THREAD_LS_T size_t StackSizeCheck_stackSizeHWM = 0;
     141THREAD_LS_T size_t *StackSizeCheck_stackSizeHWM_ptr = 0;
     142THREAD_LS_T void *StackSizeCheck_stackOffsetPointer = 0;
     143
     144#endif /* HAVE_STACK_SIZE_VERBOSE */
     145
    114146#ifdef DEBUG_WOLFSSL
    115147
     
    231263#elif defined(WOLFSSL_ANDROID_DEBUG)
    232264    #include <android/log.h>
    233 #else
    234     #include <stdio.h>   /* for default printf stuff */
     265#elif defined(WOLFSSL_XILINX)
     266    #include "xil_printf.h"
     267#elif defined(WOLFSSL_LINUXKM)
     268    /* the requisite linux/kernel.h is included in wc_port.h, with incompatible warnings masked out. */
     269#elif defined(FUSION_RTOS)
     270    #include <fclstdio.h>
     271    #include <wolfssl/wolfcrypt/wc_port.h>
     272    #define fprintf FCL_FPRINTF
     273#else
     274    #include <stdio.h>  /* for default printf stuff */
    235275#endif
    236276
     
    264304#elif defined(MQX_USE_IO_OLD)
    265305        fprintf(_mqxio_stderr, "%s\n", logMessage);
    266 
    267306#elif defined(WOLFSSL_APACHE_MYNEWT)
    268307        LOG_DEBUG(&mynewt_log, LOG_MODULE_DEFAULT, "%s\n", logMessage);
     
    275314#elif defined(WOLFSSL_ANDROID_DEBUG)
    276315        __android_log_print(ANDROID_LOG_VERBOSE, "[wolfSSL]", "%s", logMessage);
     316#elif defined(WOLFSSL_XILINX)
     317        xil_printf("%s\r\n", logMessage);
     318#elif defined(WOLFSSL_LINUXKM)
     319        printk("%s\n", logMessage);
    277320#else
    278321        fprintf(stderr, "%s\n", logMessage);
     
    818861        {
    819862            next = current->next;
    820             cb(current->error, strlen(current->error), u);
     863            cb(current->error, XSTRLEN(current->error), u);
    821864            XFREE(current, current->heap, DYNAMIC_TYPE_LOG);
    822865            current = next;
Note: See TracChangeset for help on using the changeset viewer.