client-common.c revision fa02962b74d39e8d74c4c307c0210791b2f0a1ca
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen/* Copyright (c) 2002-2012 Dovecot authors, see the included COPYING file */
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainenstruct client *clients = NULL, *last_client = NULL;
af49da69a12b5383b89c7b2fa574c2a85b9ca310Timo Sirainenstatic unsigned int clients_count = 0;
af49da69a12b5383b89c7b2fa574c2a85b9ca310Timo Sirainenstatic void client_idle_disconnect_timeout(struct client *client)
unsigned int secs;
struct client *
return client;
return TRUE;
return FALSE;
void client_destroy_oldest(void)
void clients_destroy_all(void)
int fd_ssl;
int ret;
if (ret > 0) {
if (!ssl_initialized) {
unsigned int clients_get_count(void)
return clients_count;
#ifdef HAVE_IPV6
static const struct var_expand_table *
sizeof(login_var_expand_empty_tab));
const char *ssl_state =
const char *ssl_error =
return tab;
char key;
str++;
return TRUE;
return FALSE;
unsigned int pos;
if (have_username_key(*e)) {
T_BEGIN {
} T_END;
T_BEGIN {
} T_END;
T_BEGIN {
} T_END;
const char *const *net;
unsigned int bits;
return FALSE;
return TRUE;
return FALSE;
return t_strdup_printf(
const char *text)
return FALSE;
return FALSE;
return TRUE;
return TRUE;