summaryrefslogtreecommitdiffstats
path: root/src/responder/nss/nss_private.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2017-04-19 17:44:40 +0200
committerJakub Hrozek <jhrozek@redhat.com>2017-04-21 11:24:41 +0200
commit7c074ba2f923985ab0d4f9d6a5e01ff3f2f0a7a8 (patch)
tree3a0e41d0ec0acbedbe905a8e6f32cf613bf992fd /src/responder/nss/nss_private.h
parent363e4c407085ea5623850b1dadb1344f2edd3c34 (diff)
downloadsssd-7c074ba2f923985ab0d4f9d6a5e01ff3f2f0a7a8.tar.gz
sssd-7c074ba2f923985ab0d4f9d6a5e01ff3f2f0a7a8.tar.xz
sssd-7c074ba2f923985ab0d4f9d6a5e01ff3f2f0a7a8.zip
Move sized_output_name() and sized_domain_name() into responder common code
These functions are used to format a name into a format that the user configured for output, including case sensitiveness, replacing whitespace and qualified format. They were used only in the NSS responder, which typically returns strings to the NSS client library and then the user. But it makes sense to just reuse the same code in the IFP responder as well, since it does essentially the same job. The patch also renames sized_member_name to sized_domain_name. Previously, the function was only used to format a group member, the IFP responder would use the same function to format a group the user is a member of. Related to: https://pagure.io/SSSD/sssd/issue/3268 Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/responder/nss/nss_private.h')
-rw-r--r--src/responder/nss/nss_private.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/responder/nss/nss_private.h b/src/responder/nss/nss_private.h
index acb3c4aa5..13de83226 100644
--- a/src/responder/nss/nss_private.h
+++ b/src/responder/nss/nss_private.h
@@ -140,17 +140,6 @@ const char *
nss_get_name_from_msg(struct sss_domain_info *domain,
struct ldb_message *msg);
-int sized_output_name(TALLOC_CTX *mem_ctx,
- struct resp_ctx *rctx,
- const char *orig_name,
- struct sss_domain_info *name_dom,
- struct sized_string **_name);
-
-int sized_member_name(TALLOC_CTX *mem_ctx,
- struct resp_ctx *rctx,
- const char *member_name,
- struct sized_string **_name);
-
const char *
nss_get_pwfield(struct nss_ctx *nctx,
struct sss_domain_info *dom);