1
0

user_settings.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* user_settings.h
  2. *
  3. * Copyright (C) 2006-2023 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. /* Debug */
  80. #include <applibs/log.h>
  81. #define printf Log_Debug
  82. #define WOLFIO_DEBUG
  83. #define NO_MAIN_DRIVER
  84. #define WOLFSSL_IGNORE_FILE_WARN /* Added per peer review as a guard against
  85. * future warnings, PR #5778 */
  86. #endif /* _USER_SETTINGS_H_ */