user_settings.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /* user_settings.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 _USER_SETTINGS_H_
  22. #define _USER_SETTINGS_H_
  23. #define SERVER_IP "192.168.1.123"
  24. #define CUSTOM_SERVER_CONNECTION
  25. #define WOLFSSL_AZSPHERE
  26. /* Client connects to the server with these details. */
  27. #ifdef CUSTOM_SERVER_CONNECTION
  28. #ifndef SERVER_IP
  29. #define SERVER_IP "192.168.1.200" /* Local Test Server IP */
  30. #endif
  31. #ifndef DEFAULT_PORT
  32. #define DEFAULT_PORT 11111
  33. #endif
  34. #define CERT ca_cert_der_2048
  35. #define SIZEOF_CERT sizeof_ca_cert_der_2048
  36. static const char msg[] = "Are you listening wolfSSL Server?";
  37. #else
  38. #ifndef SERVER_IP
  39. #define SERVER_IP "www.wolfssl.com"
  40. #endif
  41. #ifndef DEFAULT_PORT
  42. #define DEFAULT_PORT 443
  43. #endif
  44. #define CERT wolfssl_website_root_ca
  45. #define SIZEOF_CERT sizeof_wolfssl_website_root_ca
  46. static const char msg[] = "GET /index.html HTTP/1.1\r\n\r\n";
  47. #endif
  48. /* Math: Normal (!USE_FAST_MATH) */
  49. #define SIZEOF_LONG_LONG 8
  50. #define WC_RSA_BLINDING
  51. #define ECC_TIMING_RESISTANT
  52. /* Enable options */
  53. #define HAVE_CHACHA
  54. #define HAVE_POLY1305
  55. #define HAVE_ECC
  56. #define HAVE_SUPPORTED_CURVES
  57. #define HAVE_TLS_EXTENSIONS
  58. #define HAVE_ONE_TIME_AUTH
  59. #define HAVE_TRUNCATED_HMAC
  60. #define HAVE_EXTENDED_MASTER
  61. #define HAVE_ALPN
  62. #define HAVE_SNI
  63. #define HAVE_OCSP
  64. #define HAVE_AESGCM
  65. /* Disable options */
  66. #define NO_PWDBASED
  67. #define NO_DSA
  68. #define NO_DES3
  69. #define NO_RC4
  70. #define NO_MD4
  71. /* Benchmark / Testing */
  72. #define BENCH_EMBEDDED
  73. #define USE_CERT_BUFFERS_2048
  74. #define USE_CERT_BUFFERS_256
  75. /* OS */
  76. #define SINGLE_THREADED
  77. /* Filesystem */
  78. #define NO_FILESYSTEM
  79. #define HAVE_NETDB_H
  80. /* Debug */
  81. #include <applibs/log.h>
  82. #define printf Log_Debug
  83. #define WOLFIO_DEBUG
  84. #define NO_MAIN_DRIVER
  85. #define WOLFSSL_IGNORE_FILE_WARN /* Added per peer review as a guard against
  86. * future warnings, PR #5778 */
  87. #endif /* _USER_SETTINGS_H_ */