Searched defs:host (Results 1 - 25 of 61) sorted by relevance

123

/dovecot/src/login-common/
H A Dlogin-proxy.h26 const char *host; member in struct:login_proxy_settings
39 /* Create a proxy to given host. Returns NULL if failed. Given callback is
47 /* Return TRUE if host/port/destuser combination points to same as current
49 bool login_proxy_is_ourself(const struct client *client, const char *host,
/dovecot/src/director/
H A Duser-directory.h19 struct mail_host *host; member in struct:user
48 struct mail_host *host, time_t timestamp);
52 /* Remove all users that have pointers to given host */
54 struct mail_host *host);
H A Dmail-host.h11 struct mail_host *host; member in struct:mail_vhost
20 /* temporary user -> host associations */
40 /* host was recently changed and ring hasn't synced yet since */
59 const char *mail_host_get_tag(const struct mail_host *host);
60 void mail_host_set_tag(struct mail_host *host, const char *tag_name);
61 void mail_host_set_down(struct mail_host *host, bool down, time_t timestamp,
63 void mail_host_set_vhost_count(struct mail_host *host, unsigned int vhost_count,
65 void mail_host_remove(struct mail_host *host);
H A Dtest-user-directory.c6 #include "mail-host.h"
45 struct mail_host *host = t_new(struct mail_host, 1); local
50 (void)user_directory_add(dir, 1, host, ioloop_time + count+1);
53 (void)user_directory_add(dir, i+2, host, ioloop_time + i);
63 struct mail_host *host = t_new(struct mail_host, 1); local
70 (void)user_directory_add(dir, i+1, host, ioloop_time - i);
79 struct mail_host *host = t_new(struct mail_host, 1); local
90 (void)user_directory_add(dir, i+1, host, timestamp);
H A Ddirector-host.c6 #include "director-host.h"
29 struct director_host *host; local
33 host = i_new(struct director_host, 1);
34 host->dir = dir;
35 host->refcount = 1;
36 host->ip = *ip;
37 host->ip_str = i_strdup(net_ip2addr(&host->ip));
38 host->port = port;
39 host
51 struct director_host *host = *_host; local
59 director_host_ref(struct director_host *host) argument
65 director_host_unref(struct director_host *host) argument
87 director_host_restarted(struct director_host *host) argument
99 struct director_host *host; local
154 director_host_add_string(struct director *dir, const char *host) argument
[all...]
H A Ddirector-request.c7 #include "mail-host.h"
190 struct mail_host *host; local
216 if (!user_directory_user_is_near_expiring(user->host->tag->users, user))
221 host = mail_host_get_by_hash(dir->mail_hosts, user->username_hash,
222 user->host->tag->name);
230 if (user->host == host) {
233 dir_debug("request: %u would be weak, but host doesn't change", request->username_hash);
256 1. Send a USER-WEAK notification to all directors with the new host.
258 and host, bu
281 struct mail_host *host; local
[all...]
H A Dlogin-connection.c14 #include "mail-host.h"
137 login_host_callback(const struct mail_host *host, const char *hostname, argument
145 if (host == NULL) {
153 i_error("director: User %s host lookup failed: %s",
158 login_host_request_is_self(request, &host->ip)) {
170 str_append(str, host->ip_str);
174 str_append(str, host->ip_str);
191 bool proxy = FALSE, host = FALSE; local
222 else if (strncmp(*args, "host=", 5) == 0)
223 host
[all...]
H A Dmain.c18 #include "director-host.h"
21 #include "mail-host.h"
163 struct director_host *host; local
165 host = director_host_lookup_ip(director, ip);
166 if (host == NULL || host->removed) {
H A Duser-directory.c8 #include "mail-host.h"
58 i_assert(user->host->user_count > 0);
59 user->host->user_count--;
145 struct mail_host *host, time_t timestamp)
155 user->host = host;
156 user->host->user_count++;
179 struct mail_host *host)
186 if (user->host == host)
144 user_directory_add(struct user_directory *dir, unsigned int username_hash, struct mail_host *host, time_t timestamp) argument
178 user_directory_remove_host(struct user_directory *dir, struct mail_host *host) argument
[all...]
/dovecot/src/lib/
H A Dtest-net.c92 const char *host; local
97 test_assert(net_str2hostport("[1::4]", 0, &host, &port) == 0 &&
98 strcmp(host, "1::4") == 0 && port == 0);
99 test_assert(net_str2hostport("[1::4]", 1234, &host, &port) == 0 &&
100 strcmp(host, "1::4") == 0 && port == 1234);
101 test_assert(net_str2hostport("[1::4]:78", 1234, &host, &port) == 0 &&
102 strcmp(host, "1::4") == 0 && port == 78);
103 host = NULL;
104 test_assert(net_str2hostport("[1::4]:", 1234, &host, &port) < 0 && host
[all...]
H A Duri-util.h26 struct uri_host host; member in struct:uri_authority
79 character is not valid for a host name, and -1 in case of error. The
81 checking the presence of a valid host name. The result is allocated from
86 /* parse the URI 'reg-name' part as an Internet host name, which is a
89 successful, 0 if the first character is not valid for a host name,
91 to use this function for merely checking the presence of a valid host
96 /* parse the URI 'host' syntax, which is either an IP address literal or
97 a an Internet host name, as defined in Section 3.5 of RFC 1034 and
100 host name, and -1 in case of error. The provided host struc
[all...]
H A Dguid.c39 void guid_128_host_hash_get(const char *host, argument
44 sha1_get_digest(host, strlen(host), full_hash);
H A Diostream-rawlog.c166 const char *host; local
172 /* tcp:host:port */
179 if (net_str2hostport(path, 0, &host, &port) < 0 || port == 0)
182 ret = net_gethostbyname(host, &ips, &ips_count);
184 i_error("net_gethostbyname(%s) failed: %s", host,
/dovecot/src/lib-http/
H A Dhttp-url.h13 struct uri_host host; member in struct:http_url
/dovecot/src/old-stats/
H A Dstats-carbon.c80 const char *host; local
85 &host, &port) < 0 ||
86 net_addr2ip(host, &ip) < 0) {
116 if (net_ipport2str(&ip, port, &host) < 0)
118 ctx->endpoint = p_strdup(ctx->pool, host);
/dovecot/src/lib-imap/
H A Dimap-url.h8 struct uri_host host; member in struct:imap_url
/dovecot/src/lib-sasl/
H A Dmech-oauthbearer.c12 const char *host; member in struct:oauthbearer_dsasl_client
100 if (client->host != NULL && *client->host != '\0')
101 str_printfa(str, "host=%s\x01", client->host);
149 if (strcmp(key, "host") == 0) {
151 client->host = p_strdup(_client->pool, value);
153 client->host = NULL;
/dovecot/src/lib-smtp/
H A Dsmtp-server-transaction.c130 const char *host, *secstr, *rcpt_to = NULL; local
145 host = "";
147 host = net_ip2addr(&conn->remote_ip);
148 if (host[0] != '\0') {
150 str_append(str, host);
/dovecot/src/lib-storage/index/pop3c/
H A Dpop3c-client.h26 const char *host; member in struct:pop3c_client_settings
/dovecot/src/auth/
H A Dpassdb-vpopmail.c156 const char *host = net_ip2addr(&request->remote_ip); local
158 if (host[0] != '\0' && IPADDR_IS_V4(&request->remote_ip)) {
166 "TCPREMOTEIP=%s", host);
H A Dpassdb-pam.c240 const char *host; local
243 host = net_ip2addr(&request->remote_ip);
244 if (host[0] != '\0')
245 (void)pam_set_item(pamh, PAM_RHOST, host);
/dovecot/src/lib-ssl-iostream/
H A Diostream-openssl-common.c105 static bool openssl_hostname_equals(const char *ssl_name, const char *host) argument
109 if (strcmp(ssl_name, host) == 0)
115 p = strchr(host, '.');
/dovecot/src/doveadm/
H A Ddoveadm-mail-server.c222 so just continue with the default host */
230 else if (strncmp(fields[i], "host=", 5) == 0)
248 *error_r = t_strdup_printf("%s: Proxy is missing destination host",
270 const char *user, *host; local
277 ret = doveadm_mail_server_user_get_host(ctx, input, &user, &host, error_r);
290 server = doveadm_server_get(ctx, host);
H A Ddoveadm-util.c103 doveadm_tcp_connect_port(const char *host, in_port_t port) argument
110 ret = net_gethostbyname(host, &ips, &ips_count);
112 i_fatal("Lookup of host %s failed: %s",
113 host, net_gethosterror(ret));
126 const char *host; local
129 if (net_str2hostport(target, default_port, &host, &port) < 0) {
133 return doveadm_tcp_connect_port(host, port);
/dovecot/src/lib-dns/
H A Ddns-lookup.c192 int dns_lookup(const char *host, const struct dns_lookup_settings *set, argument
200 if (dns_client_lookup(client, host, callback, context, lookup_r) < 0) {
372 int dns_client_lookup(struct dns_client *client, const char *host, argument
376 const char *cmd = t_strconcat("IP\t", host, "\n", NULL);

Completed in 34 milliseconds

123