/sssd-io/src/util/ |
H A D | dlinklist.h | 3 some simple double linked list macros 27 /* hook into the front of the list */ 28 #define DLIST_ADD(list, p) \ 30 if (!(list)) { \ 31 (list) = (p); \ 34 (list)->prev = (p); \ 35 (p)->next = (list); \ 37 (list) = (p); \ 41 /* remove an element from a list - element doesn't have to be in list [all...] |
H A D | util_ext.c | 41 char **list = NULL; local 85 /* Copy the substring to the output list of strings */ 87 list = talloc_realloc(tmp_ctx, list, char*, num_strings + 2); 88 if (list == NULL) { 94 list[num_strings] = talloc_strndup(list, substr_begin, substr_len); 95 if (list[num_strings] == NULL) { 104 if (list == NULL) { 106 list 125 string_in_list(const char *string, char **list, bool case_sensitive) argument [all...] |
/sssd-io/src/db/ |
H A D | sysdb_ranges.c | 58 struct range_info **list; local 81 list = talloc_zero_array(tmp_ctx, struct range_info *, res->count + 1); 82 if (list == NULL) { 88 list[c] = talloc_zero(list, struct range_info); 89 if (list[c] == NULL) { 101 list[c]->name = talloc_strdup(list, tmp_str); 102 if (list[c]->name == NULL) { 110 list[ [all...] |
H A D | sysdb.c | 782 const char *const *list) 795 for (num = 0; list[num]; num++) /* count */ ; 809 member = sysdb_user_strdn(el->values, domain, list[i]); 812 "Failed to get user dn for [%s]\n", list[i]); 994 /* Search for all incidences of attr_name in a list of 995 * sysdb_attrs and add their value to a list 1009 char **list; local 1020 list = talloc_array(mem_ctx, char *, attr_count+1); 1021 if (!list) { 1032 * Copy it to the output list 779 sysdb_attrs_users_from_str_list(struct sysdb_attrs *attrs, const char *attr_name, const char *domain, const char *const *list) argument 1477 char **list; local [all...] |
/sssd-io/src/config/etc/ |
H A D | sssd.api.conf | 23 services = list, str, true, nss, pam 24 domains = list, str, true 35 domain_resolution_order = list, str, false 44 filter_users = list, str, false 45 filter_groups = list, str, false 52 allowed_shells = list, str, false 53 vetoed_shells = list, str, false 117 forward_headers = list, None, false 130 users = list, str, false 131 groups = list, st [all...] |
/sssd-io/src/tests/cwrap/ |
H A D | test_responder_common.c | 48 uid_t *list; local 55 ret = csv_string_to_uid_array(tmp_ctx, "1, 2, 3", false, &count, &list); 58 assert_int_equal(list[0], 1); 59 assert_int_equal(list[1], 2); 60 assert_int_equal(list[2], 3); 62 talloc_free(list); 72 uid_t *list; local 79 ret = csv_string_to_uid_array(tmp_ctx, "sssd, foobar", true, &count, &list); 82 assert_int_equal(list[0], 123); 83 assert_int_equal(list[ 95 uid_t *list = NULL; local [all...] |
/sssd-io/src/responder/common/ |
H A D | responder_cmd.c | 182 /* Need to modify the list from a talloc destructor */ 203 struct setent_req_list **list, 214 DLIST_ADD_END(*list, entry, struct setent_req_list *); 215 entry->head = list; 221 void setent_notify(struct setent_req_list **list, errno_t err) argument 226 while ((reql = *list) != NULL) { 228 * the request, removing it from the list. 236 if (reql == *list) { 244 *list = (*list) 202 setent_add_ref(TALLOC_CTX *memctx, struct setent_req_list **list, struct tevent_req *req) argument 249 setent_notify_done(struct setent_req_list **list) argument [all...] |
H A D | responder_utils.c | 30 attr_in_list(const char **list, size_t nlist, const char *str) argument 35 if (strcasecmp(list[i], str) == 0) { 48 const char **list = NULL; local 68 "Cannot parse attribute ACL list %s: %d\n", conf_str, ret); 108 list = talloc_zero_array(tmp_ctx, const char *, list_size + 1); 109 if (list == NULL) { 120 list[li] = talloc_strdup(list, allow[i]); 121 if (list[li] == NULL) { 138 list[l [all...] |
/sssd-io/src/lib/certmap/ |
H A D | sss_cert_content_crypto.c | 321 const char **list = NULL; 338 list = talloc_zero_array(mem_ctx, const char *, 340 if (list == NULL) { 365 list[c] = talloc_asprintf(list, "%s=%.*s", openssl_2_nss_attr_name(sn), 373 if (list[c] == NULL) { 384 *rdn_list = list; 386 talloc_free(list); 453 struct san_list *list = NULL; 482 DLIST_ADD(list, item_ [all...] |
H A D | sss_cert_content_nss.c | 227 const char **list = NULL; local 230 list = talloc_zero_array(mem_ctx, const char *, c + 1); 231 if (list == NULL) { 236 ret = get_rdn_str(list, rdns[c]->avas, 237 &(list[c])); 247 *rdn_list = list; 249 talloc_free(list); 666 struct san_list *list = NULL; local 706 DLIST_ADD(list, item_s); 715 DLIST_ADD(list, item_ [all...] |
/sssd-io/src/tests/ |
H A D | common_dom.c | 83 char *list = NULL; local 94 /* get current domain list */ 96 NULL, &list); 102 if (list != NULL) { 103 ret = split_on_separator(tmp_ctx, list, ',', true, true, &array, NULL); 116 /* add domain to the list of enabled domains */ 118 if (list == NULL) { 119 list = talloc_strdup(tmp_ctx, name); 121 list = talloc_asprintf_append(list, ", [all...] |
H A D | util-tests.c | 48 char **list = NULL; local 53 ret = add_string_to_list(global_talloc_context, "ABC", &list); 54 fail_unless(ret == EOK, "Adding string to non-existing list failed."); 55 fail_unless(list != NULL, "No new list created."); 56 fail_unless(list[0] != NULL, "String not added to new list."); 57 fail_unless(strcmp(list[0], "ABC") == 0, 58 "Wrong string added to newly created list."); 59 fail_unless(list[ 87 char *list[] = {discard_const("ABC"), local 807 char **list = NULL; local [all...] |
H A D | dlopen-tests.c | 195 static void remove_library_from_list(const char *library, char **list, argument 199 if (list[i] != NULL && strcmp(library, list[i]) == 0) { 200 /* found library need to be removed from list */ 201 free(list[i]); 202 list[i] = NULL;
|
/sssd-io/src/responder/ifp/ |
H A D | ifp_components.c | 158 const char **list = NULL; local 166 list = talloc_array(mem_ctx, const char*, num); 167 if (list == NULL) { 173 list[i] = sbus_opath_compose(list, PATH_RESPONDERS, svc[i]); 174 if (list[i] == NULL) { 181 *_list = list; 186 talloc_free(list); 198 const char **list = NULL; local 216 list [all...] |
/sssd-io/src/providers/data_provider/ |
H A D | dp_request_reply.c | 98 static void dp_req_reply_list_error(struct dp_sbus_req_item *list, argument 111 for (item = list; item != NULL; item = next_item) { 119 for (item = list; item != NULL; item = next_item) { 128 static void dp_req_reply_list_success(struct dp_sbus_req_item *list, argument 138 for (item = list; item != NULL; item = next_item) { 352 dp_req_reply_list_error(value->list, state->name, ret); 365 dp_req_reply_list_success(value->list, state->reply_fn,
|
H A D | dp_request_table.c | 33 DLIST_REMOVE(item->parent->list, item); 48 for (item = value->list; item != NULL; item = next_item) { 63 * from the list when it is unexpectedly freed, for example when 142 table_value->list = dp_sbus_req_item_new(table_value, sbus_req); 143 if (table_value->list == NULL) { 185 DLIST_ADD(table_value->list, item);
|
/sssd-io/src/sss_client/idmap/ |
H A D | sss_nss_idmap.c | 143 struct sss_nss_kv *list; local 158 list = calloc((count + 1), sizeof(struct sss_nss_kv)); 159 if (list == NULL) { 165 list[c].key = strdup((char *) p); 166 if (list[c].key == NULL) { 178 list[c].value = strdup((char *) p); 179 if (list[c].value == NULL) { 192 *kv_list = list; 198 sss_nss_free_kv(list);
|
/sssd-io/src/responder/common/cache_req/ |
H A D | cache_req_domain.c | 114 * - the presence of a domains' resolution order list; 154 * the list adding its domains to the flatten cache req domains' list */ 187 * to the flatten cache req domains' list */ 232 char **list = NULL; local 243 "Domain resolution order list (split by ':'): \"%s\"\n", 247 true, true, &list, NULL); 256 "Domain resolution order list: ':' " 261 "Domain resolution order list: not set\n"); 265 list); [all...] |
/sssd-io/src/tests/cmocka/data_provider/ |
H A D | test_dp_request_table.c | 178 assert_ptr_equal(tv->list->sbus_req, sbus_req); 196 assert_ptr_equal(tv->list->sbus_req, sbus_req2); 197 assert_non_null(tv->list->next); 198 assert_ptr_equal(tv->list->next->sbus_req, sbus_req); 258 struct dp_sbus_req_item *ri = tv->list; 276 ri = tv->list;
|
/sssd-io/src/tests/intg/ |
H A D | ent.py | 25 _GROUP_DESC = {"mem": ("member list", {None: ("member", {})})} 61 An entry is a value, a list of entries, or a dictionary of entries. 65 A pattern is a value, a tuple, a list, or a dictionary of patterns. 69 A pattern can be matched against a value, a list, or a dictionary entry. 75 A list is considered matching a pattern, if the pattern is a list or a 76 tuple, where each of pattern list items matches an entry list item and 77 vice versa, or where each pattern tuple item matches an entry list item, 86 "contains_only" function to create patterns matching all entry list [all...] |
/sssd-io/src/providers/simple/ |
H A D | simple_access.c | 40 char **list, 52 if (list == NULL) { 64 for (size = 0; list[size] != NULL; size++) { 78 ret = sss_parse_name(tmp_ctx, be_ctx->domain->names, list[i], 143 DEBUG(SSSDBG_FUNC_DATA, "%s list is empty.\n", lists[i].name); 154 DEBUG(SSSDBG_CRIT_FAILURE, "Unable to parse %s list [%d]: %s\n", 38 simple_access_parse_names(TALLOC_CTX *mem_ctx, struct be_ctx *be_ctx, char **list, char ***_out) argument
|
/sssd-io/src/sbus/ |
H A D | sssd_dbus_interface.c | 32 sbus_iface_list_lookup(struct sbus_interface_list *list, argument 37 DLIST_FOR_EACH(item, list) { 48 struct sbus_interface_list *list, 57 if (list == NULL) { 67 DLIST_FOR_EACH(item, list) { 70 /* already in list */ 516 struct sbus_interface_list *list = NULL; local 530 /* create new list item */ 539 /* first lookup existing list in hash table */ 541 list 47 sbus_iface_list_copy(TALLOC_CTX *mem_ctx, struct sbus_interface_list *list, struct sbus_interface_list **_copy) argument 598 struct sbus_interface_list *list = NULL; local [all...] |
H A D | sssd_dbus_utils.c | 114 } list[] = { { SBUS_ERROR_INTERNAL, ERR_INTERNAL }, local 127 for (i = 0; list[i].name != NULL; i++) { 128 if (dbus_error_has_name(error, list[i].name)) { 129 return list[i].ret;
|
H A D | sssd_dbus_introspect.c | 323 struct sbus_interface_list *list) 340 DLIST_FOR_EACH(item, list) { 372 struct sbus_interface_list *list; local 381 sbus_req->path, &list); 391 nodes, list); 320 sbus_introspect_generate(TALLOC_CTX *mem_ctx, const char *node, const char **nodes, struct sbus_interface_list *list) argument
|
/sssd-io/src/providers/ldap/ |
H A D | ldap_init.c | 43 errno_t check_order_list_for_duplicates(char **list, argument 50 for (c = 0; list[c] != NULL; c++) { 51 for (d = c + 1; list[d] != NULL; d++) { 53 cmp = strcmp(list[c], list[d]); 55 cmp = strcasecmp(list[c], list[d]); 59 "Duplicate string [%s] found.\n", list[c]);
|