Mercurial > dovecot > core-2.2
comparison src/login-common/login-proxy.h @ 10616:23956a9b915b HEAD
login: Proxying supports now doing DNS lookups for host names.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 31 Jan 2010 19:11:21 +0200 |
parents | 6b3dc91ae0c5 |
children | c872378a8de6 |
comparison
equal
deleted
inserted
replaced
10615:8f9fc7fa7c73 | 10616:23956a9b915b |
---|---|
13 PROXY_SSL_FLAG_ANY_CERT = 0x04 | 13 PROXY_SSL_FLAG_ANY_CERT = 0x04 |
14 }; | 14 }; |
15 | 15 |
16 struct login_proxy_settings { | 16 struct login_proxy_settings { |
17 const char *host; | 17 const char *host; |
18 const char *dns_client_socket_path; | |
18 unsigned int port; | 19 unsigned int port; |
19 unsigned int connect_timeout_msecs; | 20 unsigned int connect_timeout_msecs; |
20 enum login_proxy_ssl_flags ssl_flags; | 21 enum login_proxy_ssl_flags ssl_flags; |
21 }; | 22 }; |
22 | 23 |
25 | 26 |
26 /* Create a proxy to given host. Returns NULL if failed. Given callback is | 27 /* Create a proxy to given host. Returns NULL if failed. Given callback is |
27 called when new input is available from proxy. */ | 28 called when new input is available from proxy. */ |
28 int login_proxy_new(struct client *client, | 29 int login_proxy_new(struct client *client, |
29 const struct login_proxy_settings *set, | 30 const struct login_proxy_settings *set, |
30 proxy_callback_t *callback, struct login_proxy **proxy_r); | 31 proxy_callback_t *callback); |
31 /* Free the proxy. This should be called if authentication fails. */ | 32 /* Free the proxy. This should be called if authentication fails. */ |
32 void login_proxy_free(struct login_proxy **proxy); | 33 void login_proxy_free(struct login_proxy **proxy); |
33 | 34 |
34 /* Return TRUE if host/port/destuser combination points to same as current | 35 /* Return TRUE if host/port/destuser combination points to same as current |
35 connection. */ | 36 connection. */ |