summaryrefslogtreecommitdiffstats
path: root/src/util/util.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-11-08 15:18:40 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-11-15 20:38:08 +0100
commite16963fb913d6a5fc1c54154270ded129ac33962 (patch)
tree3de05d4756178ba57471472caaa0fbd9c71e1b50 /src/util/util.h
parente7a6d717520b794cd7feb4243d34d4b7f8d81daf (diff)
downloadsssd-e16963fb913d6a5fc1c54154270ded129ac33962.tar.gz
sssd-e16963fb913d6a5fc1c54154270ded129ac33962.tar.xz
sssd-e16963fb913d6a5fc1c54154270ded129ac33962.zip
Add sss_tc_fqname2()
sss_tc_fqname2() is similar to sss_tc_fqname() but expects domain and flat domain name as string arguments instead of a domain struct.
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 4c0e75f12..8031039a3 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -372,6 +372,15 @@ char *
sss_tc_fqname(TALLOC_CTX *mem_ctx, struct sss_names_ctx *nctx,
struct sss_domain_info *domain, const char *name);
+/* Return fully-qualified name according to the fq_fmt. The name is allocated using
+ * talloc on top of mem_ctx. In contrast to sss_tc_fqname() sss_tc_fqname2()
+ * expects the domain and flat domain name as separate arguments.
+ */
+char *
+sss_tc_fqname2(TALLOC_CTX *mem_ctx, struct sss_names_ctx *nctx,
+ const char *dom_name, const char *flat_dom_name,
+ const char *name);
+
/* Return fully-qualified name formatted according to the fq_fmt. The buffer in "str" is
* "size" bytes long. Returns the number of bytes written on success or a negative
* value of failure.