client-common.c revision eddd9bf1a1369aea4a2715f6be1137da6d17d293
/* Copyright (c) 2002-2007 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "hostpid.h"
#include "str.h"
#include "str-sanitize.h"
#include "var-expand.h"
#include "ssl-proxy.h"
#include "client-common.h"
#include <stdlib.h>
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 },
{ '\0', NULL }
};
struct var_expand_table *tab;
}
} else {
"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);
}
{
);
}