|
| 1 | +[#ftl] |
| 2 | +/** |
| 3 | + ****************************************************************************** |
| 4 | + * File Name : ${name} |
| 5 | + * Description : This file provides code for the configuration |
| 6 | + * of the ${name} instances. |
| 7 | + ****************************************************************************** |
| 8 | +[@common.optinclude name=mxTmpFolder+"/license.tmp"/][#--include License text --] |
| 9 | + ****************************************************************************** |
| 10 | + */ |
| 11 | +[#assign s = name] |
| 12 | +[#assign toto = s?replace(".","_")] |
| 13 | +[#assign toto = toto?replace("/","")] |
| 14 | +[#assign toto = toto?replace("-","_")] |
| 15 | +[#assign inclusion_protection = toto?upper_case] |
| 16 | +/* Define to prevent recursive inclusion -------------------------------------*/ |
| 17 | +#ifndef __${inclusion_protection}__ |
| 18 | +#define __${inclusion_protection}__ |
| 19 | + |
| 20 | +#ifdef __cplusplus |
| 21 | + extern "C" { |
| 22 | +#endif |
| 23 | + |
| 24 | + |
| 25 | +/* Includes ------------------------------------------------------------------*/ |
| 26 | +[#if includes??] |
| 27 | +[#list includes as include] |
| 28 | +#include "${include}" |
| 29 | +[/#list] |
| 30 | +[/#if] |
| 31 | + |
| 32 | +[#-- SWIPdatas is a list of SWIPconfigModel --] |
| 33 | +[#list SWIPdatas as SWIP] |
| 34 | +[#-- Global variables --] |
| 35 | +[#if SWIP.variables??] |
| 36 | + [#list SWIP.variables as variable] |
| 37 | +extern ${variable.value} ${variable.name}; |
| 38 | + [/#list] |
| 39 | +[/#if] |
| 40 | + |
| 41 | +[#-- Global variables --] |
| 42 | + |
| 43 | +[#assign instName = SWIP.ipName] |
| 44 | +[#assign fileName = SWIP.fileName] |
| 45 | +[#assign version = SWIP.version] |
| 46 | + |
| 47 | +/** |
| 48 | + MiddleWare name : ${instName} |
| 49 | + MiddleWare fileName : ${fileName} |
| 50 | + MiddleWare version : ${version} |
| 51 | +*/ |
| 52 | +[#if SWIP.defines??] |
| 53 | + [#list SWIP.defines as definition] |
| 54 | +/*---------- [#if definition.comments??]${definition.comments}[/#if] -----------*/ |
| 55 | +#define ${definition.name} #t#t ${definition.value} |
| 56 | +[#if definition.description??]${definition.description} [/#if] |
| 57 | + [/#list] |
| 58 | +[/#if] |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +[/#list] |
| 63 | + |
| 64 | +/* ------------------------------------------------------------------------- */ |
| 65 | +/* Platform */ |
| 66 | +/* ------------------------------------------------------------------------- */ |
| 67 | +#define WOLFSSH_STM32_CUBEMX |
| 68 | +/* #define WOLFSSL_CMSIS_RTOS */ |
| 69 | +/* #define NO_FILESYSTEM */ |
| 70 | + |
| 71 | +/* ------------------------------------------------------------------------- */ |
| 72 | +/* Enable Features */ |
| 73 | +/* ------------------------------------------------------------------------- */ |
| 74 | +/* SCP */ |
| 75 | +#undef WOLFSSH_SCP |
| 76 | +#if defined(WOLFSSH_CONF_SCP) && WOLFSSH_CONF_SCP == 1 |
| 77 | + #define WOLFSSH_SCP |
| 78 | +#endif |
| 79 | + |
| 80 | +/* SFTP */ |
| 81 | +#undef WOLFSSH_SFTP |
| 82 | +#if !defined(NO_FILESYSTEM) && defined(WOLFSSH_CONF_SFTP) && WOLFSSH_CONF_SFTP == 1 |
| 83 | + #define WOLFSSH_SFTP |
| 84 | +#endif |
| 85 | + |
| 86 | +/* ------------------------------------------------------------------------- */ |
| 87 | +/* Debugging */ |
| 88 | +/* ------------------------------------------------------------------------- */ |
| 89 | +#if defined(WOLFSSH_CONF_DEBUG) && WOLFSSH_CONF_DEBUG == 1 |
| 90 | + #define DEBUG_WOLFSSH |
| 91 | +#endif |
| 92 | + |
| 93 | + |
| 94 | +/* ------------------------------------------------------------------------- */ |
| 95 | +/* wolfSSH IO */ |
| 96 | +/* ------------------------------------------------------------------------- */ |
| 97 | +#define WOLFSSH_LWIP |
| 98 | +/* Remove the LWIP define and uncomment the line below to use user defined IO */ |
| 99 | +/* #define WOLFSSL_USER_IO */ |
| 100 | + |
| 101 | +/* To be defined for the target Socket API */ |
| 102 | +#define WSTARTTCP() |
| 103 | + |
| 104 | +#define WOLFSSH_LOG_PRINTF |
| 105 | +#define WOLFSSL_LOG_PRINTF |
| 106 | +#define fprintf(err, ... ) printf(__VA_ARGS__) |
| 107 | + |
| 108 | +#define BENCH_EMBEDDED |
| 109 | +#define NO_WRITEV |
| 110 | +#define NO_DEV_RANDOM |
| 111 | +#define USE_CERT_BUFFERS_2048 |
| 112 | +#define WOLFSSL_USER_CURRTIME |
| 113 | +#define SIZEOF_LONG_LONG 8 |
| 114 | +#define NO_WOLFSSL_DIR |
| 115 | +#define WOLFSSL_NO_CURRDIR |
| 116 | +#define NO_WOLF_C99 |
| 117 | +#define NO_MULTIBYTE_PRINT |
| 118 | + |
| 119 | + |
| 120 | +#if !defined(NO_FILESYSTEM) |
| 121 | + #define WOLFSSH_USER_FILESYSTEM |
| 122 | +#endif |
| 123 | +#define NO_WOLFSSH_DIR |
| 124 | + |
| 125 | + |
| 126 | +#define XVALIDATEDATE(d, f,t) (0) |
| 127 | +#define WOLFSSL_USER_CURRTIME /* for benchmark */ |
| 128 | + |
| 129 | +#define WOLFSSL_GENSEED_FORTEST /* Warning: define your own seed gen */ |
| 130 | + |
| 131 | +#define TFM_TIMING_RESISTANT |
| 132 | +#define ECC_TIMING_RESISTANT |
| 133 | +#define WC_RSA_BLINDING |
| 134 | + |
| 135 | +/* #define NO_DH */ |
| 136 | +#define HAVE_AESGCM |
| 137 | +#define WOLFSSL_SHA512 |
| 138 | +#define HAVE_ECC |
| 139 | +#define HAVE_CURVE25519 |
| 140 | +#define CURVE25519_SMALL |
| 141 | +#define HAVE_ED25519 |
| 142 | + |
| 143 | +typedef unsigned int size_t; |
| 144 | + |
| 145 | +/* defines for unit tests */ |
| 146 | +#define NO_UNITTEST_MAIN_DRIVER |
| 147 | +#define NO_TESTSUITE_MAIN_DRIVER |
| 148 | +#define NO_APITEST_MAIN_DRIVER |
| 149 | + |
| 150 | +#ifdef __cplusplus |
| 151 | +} |
| 152 | +#endif |
| 153 | +#endif /* ${inclusion_protection}_H */ |
| 154 | + |
| 155 | +/** |
| 156 | + * @} |
| 157 | + */ |
| 158 | + |
| 159 | +/*****END OF FILE****/ |
0 commit comments