2015-12-02 21:49:51 +01:00
|
|
|
/*
|
|
|
|
* smtp.h, SJ
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SMTP_H
|
|
|
|
#define _SMTP_H
|
|
|
|
|
2016-08-31 12:37:13 +02:00
|
|
|
void process_command_ehlo_lhlo(struct session_ctx *sctx, int *protocol_state, char *resp, int resplen);
|
|
|
|
void process_command_starttls(struct session_ctx *sctx, int *protocol_state, int *starttls, char *resp, int resplen);
|
|
|
|
void process_command_mail_from(struct session_ctx *sctx, int *protocol_state, char *buf, char *resp, int resplen);
|
|
|
|
void process_command_rcpt_to(struct session_ctx *sctx, int *protocol_state, char *buf, char *resp, int resplen);
|
|
|
|
void process_command_data(struct session_ctx *sctx, int *protocol_state, char *resp, int resplen);
|
2016-08-21 21:15:48 +02:00
|
|
|
void process_command_bdat(struct session_ctx *sctx, int *protocol_state, char *buf, char *resp, int resplen);
|
2016-08-31 12:37:13 +02:00
|
|
|
void process_command_quit(struct session_ctx *sctx, int *protocol_state, char *resp, int resplen);
|
|
|
|
void process_command_reset(struct session_ctx *sctx, int *protocol_state, char *resp, int resplen);
|
2015-12-02 21:49:51 +01:00
|
|
|
|
2016-08-21 21:15:48 +02:00
|
|
|
int read_bdat_data(struct session_ctx *sctx, int expected_bdat_len);
|
|
|
|
int extract_bdat_command(struct session_ctx *sctx, char *buf);
|
2016-08-19 22:33:47 +02:00
|
|
|
|
2016-08-21 21:15:48 +02:00
|
|
|
void send_buffered_response(struct session_ctx *sctx, int starttls, char *resp);
|
2015-12-02 21:49:51 +01:00
|
|
|
|
|
|
|
#endif /* _SMTP_H */
|