user_settings.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* user_setting.h
  2. *
  3. * Copyright (C) 2006-2024 wolfSSL Inc.
  4. *
  5. * This file is part of wolfSSL.
  6. *
  7. * wolfSSL is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * wolfSSL is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
  20. */
  21. #ifndef MICRIUM_USER_SETTINGS_H_
  22. #define MICRIUM_USER_SETTINGS_H_
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. #define MICRIUM
  27. /* You can select one or all of the following tests */
  28. #define WOLFSSL_WOLFCRYPT_TEST
  29. #define WOLFSSL_BENCHMARK_TEST
  30. #define WOLFSSL_CLIENT_TEST
  31. #define WOLFSSL_SERVER_TEST
  32. /* adjust CURRENT_UNIX_TS to seconds since Jan 01 1970. (UTC)
  33. You can get the current time from https://www.unixtimestamp.com/
  34. */
  35. #define CURRENT_UNIX_TS 1542605837
  36. /* When using Windows simulator, you must define USE_WINDOWS_API for test.h to build */
  37. #ifdef _WIN32
  38. #define USE_WINDOWS_API
  39. #endif
  40. #define NO_FILESYSTEM
  41. #define SIZEOF_LONG_LONG 8
  42. /* prevents from including multiple definition of main() */
  43. #define NO_MAIN_DRIVER
  44. #define NO_TESTSUITE_MAIN_DRIVER
  45. /* includes certificate test buffers via header files */
  46. #define USE_CERT_BUFFERS_2048
  47. /*use kB instead of mB for embedded benchmarking*/
  48. #define BENCH_EMBEDDED
  49. #define NO_WRITE_TEMP_FILES
  50. #define XSNPRINTF snprintf
  51. #define HAVE_AESGCM
  52. #define WOLFSSL_SHA512
  53. #define HAVE_ECC
  54. #define HAVE_CURVE25519
  55. #define CURVE25519_SMALL
  56. #define HAVE_ED25519
  57. #define ED25519_SMALL
  58. #ifdef __cplusplus
  59. } /* extern "C" */
  60. #endif
  61. #endif