]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Add accessor for passdb template arguments
authorAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 8 Feb 2017 11:06:13 +0000 (13:06 +0200)
committerGitLab <gitlab@git.dovecot.net>
Thu, 16 Feb 2017 13:43:42 +0000 (15:43 +0200)
src/auth/passdb-template.c
src/auth/passdb-template.h

index 07c85f1d2539d4b4dda9ba6b4bec716c76797c90..a229af1fc7687710ac1d4753689f14376c3b632e 100644 (file)
@@ -90,3 +90,9 @@ bool passdb_template_is_empty(struct passdb_template *tmpl)
 {
        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);
+}
+
index df03e33c002eefdec3073f6d556c610fa22c59bd..b681c80ede786e6f6c563701d9c192eb752a84a2 100644 (file)
@@ -11,4 +11,6 @@ bool passdb_template_remove(struct passdb_template *tmpl,
                            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