mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
Update WolfSSL library to the latest version.
This commit is contained in:
parent
8af1ad9bac
commit
5a6242fbd0
443 changed files with 70230 additions and 45414 deletions
|
|
@ -1,15 +1,15 @@
|
|||
/* settings.h
|
||||
*
|
||||
* Copyright (C) 2006-2014 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2015 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of CyaSSL.
|
||||
* This file is part of wolfSSL. (formerly known as CyaSSL)
|
||||
*
|
||||
* CyaSSL is free software; you can redistribute it and/or modify
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CyaSSL is distributed in the hope that it will be useful,
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
|
@ -26,11 +26,37 @@
|
|||
#ifndef CTAO_CRYPT_SETTINGS_H
|
||||
#define CTAO_CRYPT_SETTINGS_H
|
||||
|
||||
/* for reverse compatibility after name change */
|
||||
#include <cyassl/ctaocrypt/settings_comp.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/* Uncomment next line if using IPHONE */
|
||||
/* #define IPHONE */
|
||||
|
||||
/* Uncomment next line if using ThreadX */
|
||||
/* #define THREADX */
|
||||
|
||||
/* Uncomment next line if using Micrium ucOS */
|
||||
/* #define MICRIUM */
|
||||
|
||||
/* Uncomment next line if using Mbed */
|
||||
/* #define MBED */
|
||||
|
||||
/* Uncomment next line if using Microchip PIC32 ethernet starter kit */
|
||||
/* #define MICROCHIP_PIC32 */
|
||||
|
||||
/* Uncomment next line if using Microchip TCP/IP stack, version 5 */
|
||||
/* #define MICROCHIP_TCPIP_V5 */
|
||||
|
||||
/* Uncomment next line if using Microchip TCP/IP stack, version 6 or later */
|
||||
/* #define MICROCHIP_TCPIP */
|
||||
|
||||
/* Uncomment next line if using PIC32MZ Crypto Engine */
|
||||
/* #define CYASSL_MICROCHIP_PIC32MZ */
|
||||
|
||||
/* Uncomment next line if using FreeRTOS */
|
||||
/* #define FREERTOS */
|
||||
|
||||
|
|
@ -67,6 +93,15 @@
|
|||
/* Uncomment next line if building for IAR EWARM */
|
||||
/* #define CYASSL_IAR_ARM */
|
||||
|
||||
/* Uncomment next line if using TI-RTOS settings */
|
||||
/* #define CYASSL_TIRTOS */
|
||||
|
||||
/* Uncomment next line if building with PicoTCP */
|
||||
/* #define CYASSL_PICOTCP */
|
||||
|
||||
/* Uncomment next line if building for PicoTCP demo bundle */
|
||||
/* #define CYASSL_PICOTCP_DEMO */
|
||||
|
||||
#include <cyassl/ctaocrypt/visibility.h>
|
||||
|
||||
#ifdef IPHONE
|
||||
|
|
@ -202,6 +237,27 @@
|
|||
#define NO_MAIN_DRIVER
|
||||
#endif
|
||||
|
||||
#ifdef CYASSL_PICOTCP
|
||||
#define errno pico_err
|
||||
#include "pico_defines.h"
|
||||
#include "pico_stack.h"
|
||||
#include "pico_constants.h"
|
||||
#define CUSTOM_RAND_GENERATE pico_rand
|
||||
#endif
|
||||
|
||||
#ifdef CYASSL_PICOTCP_DEMO
|
||||
#define CYASSL_STM32
|
||||
#define USE_FAST_MATH
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#define XMALLOC(s, h, type) PICO_ZALLOC((s))
|
||||
#define XFREE(p, h, type) PICO_FREE((p))
|
||||
#define SINGLE_THREADED
|
||||
#define NO_WRITEV
|
||||
#define CYASSL_USER_IO
|
||||
#define NO_DEV_RANDOM
|
||||
#define NO_FILESYSTEM
|
||||
#endif
|
||||
|
||||
#ifdef FREERTOS_WINSIM
|
||||
#define FREERTOS
|
||||
#define USE_WINDOWS_API
|
||||
|
|
@ -255,6 +311,28 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CYASSL_TIRTOS
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
#define NO_WRITEV
|
||||
#define NO_CYASSL_DIR
|
||||
#define USE_FAST_MATH
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#define NO_DEV_RANDOM
|
||||
#define NO_FILESYSTEM
|
||||
#define USE_CERT_BUFFERS_2048
|
||||
#define NO_ERROR_STRINGS
|
||||
#define USER_TIME
|
||||
|
||||
#ifdef __IAR_SYSTEMS_ICC__
|
||||
#pragma diag_suppress=Pa089
|
||||
#elif !defined(__GNUC__)
|
||||
/* Suppress the sslpro warning */
|
||||
#pragma diag_suppress=11
|
||||
#endif
|
||||
|
||||
#include <ti/ndk/nettools/mytime/mytime.h>
|
||||
#endif
|
||||
|
||||
#ifdef EBSNET
|
||||
#include "rtip.h"
|
||||
|
||||
|
|
@ -665,4 +743,3 @@
|
|||
|
||||
|
||||
#endif /* CTAO_CRYPT_SETTINGS_H */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue