client-common.c revision 4e35bae013cee5a06d281776a347b534b958aaa4
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "hostpid.h"
#include "llist.h"
#include "str.h"
#include "str-sanitize.h"
#include "var-expand.h"
#include "ssl-proxy.h"
#include "client-common.h"
#include <stdlib.h>
static unsigned int clients_count = 0;
{
}
{
i_assert(clients_count > 0);
}
unsigned int clients_get_count(void)
{
return clients_count;
}
static const struct var_expand_table *
{
static struct var_expand_table static_tab[] = {
{ 'u', NULL },
{ 'n', NULL },
{ 'd', NULL },
{ 's', NULL },
{ 'h', NULL },
{ 'l', NULL },
{ 'r', NULL },
{ 'p', NULL },
{ 'm', NULL },
{ 'a', NULL },
{ 'b', NULL },
{ 'c', NULL },
{ 'k', NULL },
{ 'e', NULL },
{ '\0', NULL }
};
struct var_expand_table *tab;
unsigned int i;
for (i = 0; i < 3; i++)
}
} else {
"TLS" : "TLS handshaking";
}
return tab;
}
{
char key;
unsigned int i;
}
}
return FALSE;
}
{
{ 's', NULL },
{ '$', NULL },
{ '\0', NULL }
};
const struct var_expand_table *var_expand_table;
struct var_expand_table *tab;
const char *p, *const *e;
for (e = log_format_elements; *e != NULL; e++) {
for (p = *e; *p != '\0'; p++) {
if (*p != '%' || p[1] == '\0')
continue;
p++;
if (have_key(var_expand_table, p)) {
break;
}
}
}
str_truncate(str, 0);
}
{
T_BEGIN {
} T_END;
}
{
const char *const *net;
unsigned int bits;
if (trusted_networks == NULL)
return FALSE;
i_error("login_trusted_networks: "
"Invalid network '%s'", *net);
break;
}
return TRUE;
}
return FALSE;
}