smtp_opts.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #ifndef LWIP_HDR_APPS_SMTP_OPTS_H
  2. #define LWIP_HDR_APPS_SMTP_OPTS_H
  3. #include "lwip/opt.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. /**
  8. * @defgroup smtp_opts Options
  9. * @ingroup smtp
  10. *
  11. * @{
  12. */
  13. /** Set this to 1 to enable data handler callback on BODY */
  14. #ifndef SMTP_BODYDH
  15. #define SMTP_BODYDH 0
  16. #endif
  17. /** SMTP_DEBUG: Enable debugging for SNTP. */
  18. #ifndef SMTP_DEBUG
  19. #define SMTP_DEBUG LWIP_DBG_OFF
  20. #endif
  21. /** Maximum length reserved for server name including terminating 0 byte */
  22. #ifndef SMTP_MAX_SERVERNAME_LEN
  23. #define SMTP_MAX_SERVERNAME_LEN 256
  24. #endif
  25. /** Maximum length reserved for username */
  26. #ifndef SMTP_MAX_USERNAME_LEN
  27. #define SMTP_MAX_USERNAME_LEN 32
  28. #endif
  29. /** Maximum length reserved for password */
  30. #ifndef SMTP_MAX_PASS_LEN
  31. #define SMTP_MAX_PASS_LEN 32
  32. #endif
  33. /** Set this to 0 if you know the authentication data will not change
  34. * during the smtp session, which saves some heap space. */
  35. #ifndef SMTP_COPY_AUTHDATA
  36. #define SMTP_COPY_AUTHDATA 1
  37. #endif
  38. /** Set this to 0 to save some code space if you know for sure that all data
  39. * passed to this module conforms to the requirements in the SMTP RFC.
  40. * WARNING: use this with care!
  41. */
  42. #ifndef SMTP_CHECK_DATA
  43. #define SMTP_CHECK_DATA 1
  44. #endif
  45. /** Set this to 1 to enable AUTH PLAIN support */
  46. #ifndef SMTP_SUPPORT_AUTH_PLAIN
  47. #define SMTP_SUPPORT_AUTH_PLAIN 1
  48. #endif
  49. /** Set this to 1 to enable AUTH LOGIN support */
  50. #ifndef SMTP_SUPPORT_AUTH_LOGIN
  51. #define SMTP_SUPPORT_AUTH_LOGIN 1
  52. #endif
  53. /* Memory allocation/deallocation can be overridden... */
  54. #ifndef SMTP_STATE_MALLOC
  55. #define SMTP_STATE_MALLOC(size) mem_malloc(size)
  56. #define SMTP_STATE_FREE(ptr) mem_free(ptr)
  57. #endif
  58. /**
  59. * @}
  60. */
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif /* SMTP_OPTS_H */