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