bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */
e76073ebaf90fa29abfdc364873acf78983949aaTimo Sirainenconst struct var_expand_table auth_request_var_expand_static_tab[] = {
e76073ebaf90fa29abfdc364873acf78983949aaTimo Sirainen /* these 3 must be in this order */
e76073ebaf90fa29abfdc364873acf78983949aaTimo Sirainen const struct auth_request *auth_request ATTR_UNUSED,
e76073ebaf90fa29abfdc364873acf78983949aaTimo Sirainen auth_request_escape_func_t *escape_func ATTR_UNUSED,
0dffa25d211be541ee3c953b23566a1a990789dfTimo Sirainen int ret = var_expand(dest, str, auth_request_var_expand_static_tab, error_r);
e76073ebaf90fa29abfdc364873acf78983949aaTimo Sirainen static const struct {
e76073ebaf90fa29abfdc364873acf78983949aaTimo Sirainen { "%a%{env:foo}%{env:foo}%a", "%a\t%{env:foo}\t%{env:foo}" }
e76073ebaf90fa29abfdc364873acf78983949aaTimo Sirainen unsigned int i;
e76073ebaf90fa29abfdc364873acf78983949aaTimo Sirainen cache_key = auth_cache_parse_key(pool_datastack_create(),
e76073ebaf90fa29abfdc364873acf78983949aaTimo Sirainen test_assert(strcmp(cache_key, tests[i].out) == 0);
e76073ebaf90fa29abfdc364873acf78983949aaTimo Sirainen static void (*const test_functions[])(void) = {