passdb-template.c revision d9fe7936864be4fa9e1784dc7dbf451a81f4ab9c
/* Copyright (c) 2003-2011 Dovecot authors, see the included COPYING file */
#include "auth-common.h"
#include "array.h"
#include "str.h"
#include "var-expand.h"
#include "passdb.h"
#include "passdb-template.h"
struct passdb_template {
ARRAY_DEFINE(args, const char *);
};
{
struct passdb_template *tmpl;
else
}
return tmpl;
}
struct auth_request *auth_request)
{
const struct var_expand_table *table;
unsigned int i, count;
for (i = 0; i < count; i += 2) {
value = "";
else {
str_truncate(str, 0);
}
}
}
{
const char *const *args;
unsigned int i, count;
for (i = 0; i < count; i += 2) {
return TRUE;
}
}
return FALSE;
}