diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/doveadm/doveadm-server.h | |
parent | Initial commit. (diff) | |
download | dovecot-upstream.tar.xz dovecot-upstream.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/doveadm/doveadm-server.h')
-rw-r--r-- | src/doveadm/doveadm-server.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/doveadm/doveadm-server.h b/src/doveadm/doveadm-server.h new file mode 100644 index 0000000..e111b4a --- /dev/null +++ b/src/doveadm/doveadm-server.h @@ -0,0 +1,34 @@ +#ifndef DOVEADM_SERVER_H +#define DOVEADM_SERVER_H + +extern struct client_connection *doveadm_client; +extern struct doveadm_print_vfuncs doveadm_print_server_vfuncs; + +enum doveadm_proxy_ssl_flags { + /* Use SSL/TLS enabled */ + PROXY_SSL_FLAG_YES = 0x01, + /* Don't do SSL handshake immediately after connected */ + PROXY_SSL_FLAG_STARTTLS = 0x02, + /* Don't require that the received certificate is valid */ + PROXY_SSL_FLAG_ANY_CERT = 0x04 +}; + +struct doveadm_server { + /* hostname:port or socket name for logging */ + const char *name; + /* hostname without port */ + const char *hostname; + /* host ip to use */ + struct ip_addr ip; + /* port to use */ + in_port_t port; + + /* ssl related settings */ + enum doveadm_proxy_ssl_flags ssl_flags; + struct ssl_iostream_context *ssl_ctx; + + ARRAY(struct server_connection *) connections; + ARRAY_TYPE(string) queue; +}; + +#endif |