summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/providers/ldap/sdap.c11
-rw-r--r--src/providers/ldap/sdap.h1
2 files changed, 0 insertions, 12 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c
index b2d3e8c78..e82720929 100644
--- a/src/providers/ldap/sdap.c
+++ b/src/providers/ldap/sdap.c
@@ -742,17 +742,6 @@ int build_attrs_from_map(TALLOC_CTX *memctx,
return EOK;
}
-int append_attrs_to_array(const char **attrs, size_t size, const char *attr)
-{
- attrs = talloc_realloc(NULL, attrs, const char *, size + 2);
- if (!attrs) return ENOMEM;
-
- attrs[size] = attr;
- attrs[size + 1] = NULL;
-
- return EOK;
-}
-
int sdap_control_create(struct sdap_handle *sh, const char *oid, int iscritical,
struct berval *value, int dupval, LDAPControl **ctrlp)
{
diff --git a/src/providers/ldap/sdap.h b/src/providers/ldap/sdap.h
index 0f6b75504..c00b3d3e6 100644
--- a/src/providers/ldap/sdap.h
+++ b/src/providers/ldap/sdap.h
@@ -346,7 +346,6 @@ bool sdap_check_sup_list(struct sup_list *l, const char *val);
int build_attrs_from_map(TALLOC_CTX *memctx,
struct sdap_attr_map *map,
size_t size, const char ***_attrs);
-int append_attrs_to_array(const char **attrs, size_t size, const char *attr);
int sdap_control_create(struct sdap_handle *sh, const char *oid, int iscritical,
struct berval *value, int dupval, LDAPControl **ctrlp);