123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- #ifndef DEOS_USER_SETTINGS_H_
- #define DEOS_USER_SETTINGS_H_
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if 0
-
- #define WOLFSSL_DEOS_RTEMS
- #include <stdio.h>
- #include <string.h>
- #include <netinet/in.h>
- #include <sys/socket.h>
- #include <pthread.h>
- #include <stdint.h>
- #include <stddef.h> /* for size_t */
- #include <stdlib.h> /* for malloc/free */
- #if (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
- #define BIG_ENDIAN_ORDER
- #else
- #undef BIG_ENDIAN_ORDER
- #define LITTLE_ENDIAN_ORDER
- #endif
- #else
-
- #define WOLFSSL_DEOS
- #include <deos.h>
- #include <timeout.h>
- #include <socketapi.h>
- #include <lwip-socket.h>
- #include <mem.h>
- #include <string.h>
- #include <stdlib.h> /* for rand_r: pseudo-random number generator */
- #include <stdio.h> /* for snprintf */
- #endif
- #define CURRENT_UNIX_TIMESTAMP 1663020069
- #define BENCH_EMBEDDED
- #define WOLFSSL_IGNORE_FILE_WARN
- #define USE_FAST_MATH
- #define FP_MAX_BITS (4096*2)
- #define SIZEOF_LONG_LONG 8
- #define TFM_TIMING_RESISTANT
- #define ECC_TIMING_RESISTANT
- #define WC_RSA_BLINDING
- #undef WOLFSSL_SP
- #if 1
- #define WOLFSSL_HAVE_SP_RSA
- #define WOLFSSL_HAVE_SP_DH
- #define WOLFSSL_HAVE_SP_ECC
- #define WOLFSSL_SP_4096
- #define WOLFSSL_SP_384
- #define WOLFSSL_SP_MATH
-
- #define WOLFSSL_SP_NO_MALLOC
-
-
- #define WOLFSSL_SP_SMALL
- #endif
- #undef NO_RSA
- #undef NO_DH
- #define WOLFSSL_DH_CONST
- #define HAVE_ECC
- #define ECC_USER_CURVES
- #define HAVE_ECC384
- #if 1
- #define HAVE_CURVE25519
- #define HAVE_ED25519
- #define CURVED25519_SMALL
- #endif
- #undef NO_SHA
- #undef NO_MD5
- #undef NO_SHA256
- #define HAVE_AESGCM
- #define WOLFSSL_SHA384
- #define WOLFSSL_SHA512
- #define HAVE_TLS_EXTENSIONS
- #define HAVE_SUPPORTED_CURVES
- #define HAVE_EXTENDED_MASTER
- #define HAVE_ENCRYPT_THEN_MAC
- #if 0
-
- #define WOLFSSL_TLS13
- #define WC_RSA_PSS
- #define HAVE_HKDF
- #define HAVE_FFDHE_2048
- #define HAVE_FFDHE_3072
- #define HAVE_FFDHE_4096
- #endif
- #if 0
- #define WOLFSSL_WOLFSENTRY_HOOKS
- #define HAVE_EX_DATA
- #define HAVE_EX_DATA_CLEANUP_HOOKS
- #endif
- #if 0
- #define OPENSSL_EXTRA
- #endif
- #ifdef WOLFSSL_DEOS_RTEMS
- extern int rtems_wolf_seed(unsigned char* output, unsigned int sz);
- #define CUSTOM_RAND_GENERATE_SEED rtems_wolf_seed
- #endif
- #ifdef WOLFSSL_DEOS
- #define WOLFSSL_NO_MALLOC
- #define XMALLOC_OVERRIDE
-
- extern void *malloc_deos(size_t size);
- extern void free_deos(void *ptr);
- extern void *realloc_deos(void *ptr, size_t size);
- #define XMALLOC(n, h, t) malloc_deos(n)
- #define XFREE(p, h, t) free_deos(p)
- #define XREALLOC(p, n, h, t) realloc_deos(p, n)
- #endif
- #if 0
- #define DEBUG_WOLFSSL
- #endif
- #define NO_CRYPT_TEST
- #define NO_CRYPT_BENCHMARK
- #undef NO_WOLFSSL_CLIENT
- #undef NO_WOLFSSL_SERVER
- #define NO_FILESYSTEM
- #define NO_WOLFSSL_DIR
- #define NO_WRITEV
- #define NO_WRITE_TEMP_FILES
- #define NO_OLD_TLS
- #define NO_PSK
- #define NO_DSA
- #define NO_RC4
- #define NO_MD4
- #define NO_PWDBASED
- #define NO_MAIN_DRIVER
- #define NO_TESTSUITE_MAIN_DRIVER
- #ifdef __cplusplus
- }
- #endif
- #endif
|