blob: ba932af89ccd9ab88db70ea485ad686425a85c10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef CLIENT_H
#define CLIENT_H
#include "net.h"
#include "client-common.h"
#include "auth-client.h"
#include "smtp-server.h"
enum submission_proxy_state {
SUBMISSION_PROXY_BANNER = 0,
SUBMISSION_PROXY_EHLO,
SUBMISSION_PROXY_STARTTLS,
SUBMISSION_PROXY_TLS_EHLO,
SUBMISSION_PROXY_XCLIENT,
SUBMISSION_PROXY_XCLIENT_EHLO,
SUBMISSION_PROXY_AUTHENTICATE,
SUBMISSION_PROXY_STATE_COUNT
};
struct submission_client {
struct client common;
const struct submission_login_settings *set;
enum smtp_capability backend_capabilities;
struct smtp_server_connection *conn;
struct smtp_server_cmd_ctx *pending_auth;
enum submission_proxy_state proxy_state;
enum smtp_capability proxy_capability;
char *proxy_sasl_ir;
unsigned int proxy_reply_status;
struct smtp_server_reply *proxy_reply;
const char **proxy_xclient;
unsigned int proxy_xclient_replies_expected;
};
#endif
|