Mercurial > dovecot > core-2.2
changeset 21576:41febc44474a
auth: Add accessor for passdb template arguments
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Wed, 08 Feb 2017 13:06:13 +0200 |
parents | f6d27a985066 |
children | 5c390ae4f640 |
files | src/auth/passdb-template.c src/auth/passdb-template.h |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/passdb-template.c Thu Jan 26 10:49:08 2017 +0200 +++ b/src/auth/passdb-template.c Wed Feb 08 13:06:13 2017 +0200 @@ -87,3 +87,9 @@ { return array_count(&tmpl->args) == 0; } + +const char *const *passdb_template_get_args(struct passdb_template *tmpl, unsigned int *count_r) +{ + return array_get(&tmpl->args, count_r); +} +
--- a/src/auth/passdb-template.h Thu Jan 26 10:49:08 2017 +0200 +++ b/src/auth/passdb-template.h Wed Feb 08 13:06:13 2017 +0200 @@ -10,4 +10,6 @@ const char *key, const char **value_r); bool passdb_template_is_empty(struct passdb_template *tmpl); +const char *const *passdb_template_get_args(struct passdb_template *tmpl, unsigned int *count_r); + #endif