/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
#include "auth-common.h"
#include "str.h"
#include "strescape.h"
#include "auth-request.h"
struct auth_request_var_expand_ctx {
};
const struct var_expand_table
/* be sure to update AUTH_REQUEST_VAR_TAB_COUNT */
};
static const char *
{
return string;
}
const char *
{
return str_escape(string);
}
struct var_expand_table *
unsigned int *count)
{
const unsigned int auth_count =
if (escape_func == NULL)
/* keep the extra fields at the beginning. the last static_tab field
contains the ending NULL-fields. */
*count += auth_count;
auth_count * sizeof(*tab));
/* tab[4] = we have no home dir */
}
if (auth_request->userdb_lookup) {
} else {
}
switch(auth_request->secured) {
};
}
}
}
else
return ret_tab;
}
const struct var_expand_table *
{
unsigned int count = 0;
&count);
}
{
const char *p;
if (p == NULL)
return "";
else {
/* default value given */
return p+1;
}
}
static int
const char **value_r,
const char **error_r ATTR_UNUSED)
{
const char *value;
ctx->auth_request);
return 1;
}
static int
const char **value_r,
const char **error_r ATTR_UNUSED)
{
const char *value;
ctx->auth_request);
return 1;
}
{ "passdb", auth_request_var_expand_func_passdb },
{ "userdb", auth_request_var_expand_func_userdb },
};
const struct auth_request *auth_request,
const char **error_r)
{
}
const struct auth_request *auth_request,
const struct var_expand_table *table,
const char **error_r)
{
}
{
return ret;
}