Searched refs:table (Results 1 - 25 of 26) sorted by relevance

12

/sssd/src/tests/cmocka/data_provider/
H A Dtest_dp_request_table.c28 hash_table_t *table; member in struct:test_ctx
41 ret = dp_req_table_init(test_ctx, &test_ctx->table);
43 assert_non_null(test_ctx->table);
91 is_present = dp_req_table_has_key(test_ctx->table, key);
97 ret = dp_req_table_add(test_ctx->table, key, req, sbus_req);
100 is_present = dp_req_table_has_key(test_ctx->table, key);
103 tv = dp_req_table_lookup(test_ctx->table, key);
106 dp_req_table_del(test_ctx->table, key);
108 tv2 = dp_req_table_lookup(test_ctx->table, key);
111 is_present = dp_req_table_has_key(test_ctx->table, ke
123 hash_table_t *table; local
146 hash_table_t *table; local
221 hash_table_t *table; local
[all...]
/sssd/src/util/
H A Dfind_uid.h4 Create uid table
33 errno_t get_uid_table(TALLOC_CTX *mem_ctx, hash_table_t **table);
H A Dfind_uid.c4 Create uid table
209 static errno_t get_active_uid_linux(hash_table_t *table, uid_t search_uid) argument
242 if (table != NULL) {
248 ret = hash_enter(table, &key, &value);
251 "cannot add to table [%s]\n", hash_error_string(ret));
277 if (table != NULL) {
293 errno_t get_uid_table(TALLOC_CTX *mem_ctx, hash_table_t **table) argument
298 ret = hash_create_ex(INITIAL_TABLE_SIZE, table, 0, 0, 0, 0,
307 return get_active_uid_linux(*table, 0);
H A Dutil.c286 hash_table_t *table; local
326 error = hash_create(10, &table, NULL, NULL);
335 /* Add all entries from list 1 into a hash table */
339 error = hash_enter(table, &key, &value);
351 error = hash_delete(table, &key);
397 /* Get the leftover entries in the hash table */
399 error = hash_keys(table, &count, &keys);
456 hash_destroy(table);
482 hash_table_t *table; local
491 hret = hash_create_ex(count, &table, directory_bit
[all...]
/sssd/src/providers/data_provider/
H A Ddp_request_table.c46 DEBUG(SSSDBG_TRACE_FUNC, "Removing [%s] from reply table\n", value->key);
48 dp_req_table_del(value->table, value->key);
98 struct dp_table_value *dp_req_table_lookup(hash_table_t *table, argument
108 hret = hash_lookup(table, &hkey, &hvalue);
112 DEBUG(SSSDBG_CRIT_FAILURE, "Unable to search hash table [%d]\n", hret);
119 static errno_t dp_req_table_new_item(hash_table_t *table, argument
136 table_value->table = table;
158 hret = hash_enter(table, &hkey, &hvalue);
160 DEBUG(SSSDBG_CRIT_FAILURE, "Unable to enter value into hash table "
176 dp_req_table_mod_item(hash_table_t *table, struct dp_table_value *table_value, struct sbus_request *sbus_req) argument
192 dp_req_table_add(hash_table_t *table, const char *key, struct tevent_req *req, struct sbus_request *sbus_req) argument
217 dp_req_table_del(hash_table_t *table, const char *key) argument
239 dp_req_table_del_and_free(hash_table_t *table, const char *key) argument
256 dp_req_table_has_key(hash_table_t *table, const char *key) argument
[all...]
H A Ddp_private.h94 * a request is finished. Value of this table is pair
141 /* Data provider request table. */
146 hash_table_t *table; member in struct:dp_table_value
169 struct dp_table_value *dp_req_table_lookup(hash_table_t *table,
172 errno_t dp_req_table_add(hash_table_t *table,
177 void dp_req_table_del(hash_table_t *table,
180 void dp_req_table_del_and_free(hash_table_t *table,
183 bool dp_req_table_has_key(hash_table_t *table,
/sssd/src/tests/cmocka/
H A Dtest_find_uid.c68 hash_table_t *table; local
75 ret = get_uid_table(tmp_ctx, &table);
82 ret = hash_lookup(table, &key, &value);
84 assert_true(hash_delete(table, &key) == HASH_SUCCESS);
90 ret = hash_lookup(table, &key, &value);
H A Dtest_tools_colondb.c74 struct sss_colondb_write_field table[] = { local
89 ret = sss_colondb_writeline(db, table);
229 struct sss_colondb_write_field table[] = { local
240 ret = sss_colondb_writeline(db, table);
250 struct sss_colondb_write_field table[] = { local
261 ret = sss_colondb_writeline(db, table);
274 struct sss_colondb_read_field table[] = { local
284 ret = sss_colondb_readline(test_ctx, db, table);
300 struct sss_colondb_read_field table[] = { local
310 ret = sss_colondb_readline(test_ctx, db, table);
[all...]
H A Dsbus_internal_tests.c80 int __real_hash_lookup(hash_table_t *table, hash_key_t *key, hash_value_t *value);
82 int __wrap_hash_lookup(hash_table_t *table, hash_key_t *key, hash_value_t *value) argument
84 global_test_ctx->last_hash_lookup = __real_hash_lookup(table, key, value);
/sssd/src/tools/common/
H A Dsss_colondb.c107 struct sss_colondb_read_field *table)
150 for (i = 0; table[i].type != SSS_COLONDB_SENTINEL; i++) {
151 switch (table[i].type) {
153 rest = read_field_as_uint32(rest, table[i].data.uint32);
156 rest = read_field_as_string(rest, table[i].data.str);
164 if (rest == NULL && table[i + 1].type != SSS_COLONDB_SENTINEL) {
169 } else if (rest != NULL && table[i + 1].type == SSS_COLONDB_SENTINEL) {
188 struct sss_colondb_write_field *table)
212 for (i = 0; table[i].type != SSS_COLONDB_SENTINEL; i++) {
213 switch (table[
105 sss_colondb_readline(TALLOC_CTX *mem_ctx, struct sss_colondb *db, struct sss_colondb_read_field *table) argument
187 sss_colondb_writeline(struct sss_colondb *db, struct sss_colondb_write_field *table) argument
[all...]
H A Dsss_colondb.h78 * @param[in|out] table Array of expected structure of line. It is expected
84 struct sss_colondb_read_field *table);
89 * @param[in] table Array with data. It is expected that last item has
94 struct sss_colondb_write_field *table);
/sssd/src/tests/
H A Dfind_uid-tests.c70 hash_table_t *table; local
77 ret = get_uid_table(tmp_ctx, &table);
84 ret = hash_lookup(table, &key, &value);
86 fail_unless(ret == HASH_SUCCESS, "Cannot find my uid [%d] in the table", uid);
92 ret = hash_lookup(table, &key, &value);
95 "uid [%d] in the table", uid);
H A Dsbus_codegen_tests.c544 hash_table_t *table; local
553 ret = sss_hash_create(sbus_req, 10, &table);
556 values = talloc_zero_array(table, char *, 3);
566 key.str = talloc_strdup(table, "key1");
571 hret = hash_enter(table, &key, &value);
574 values = talloc_zero_array(table, char *, 3);
584 key.str = talloc_strdup(table, "key2");
590 hash_enter(table, &key, &value);
593 *_out = table;
/sssd/src/sbus/
H A Dsssd_dbus_common_signals.c33 hash_table_t *table = a_signal->conn->clients; local
41 hret = hash_keys(table, &count, &keys);
48 hret = hash_delete(table, &keys[i]);
H A Dsssd_dbus_signals.c71 sbus_incoming_signal_hash_add(hash_table_t *table, argument
97 has_key = hash_has_key(table, &key);
115 hret = hash_enter(table, &key, &value);
121 talloc_steal(table, key.str);
122 talloc_steal(table, data);
132 sbus_incoming_signal_hash_lookup(hash_table_t *table, argument
147 hret = hash_lookup(table, &key, &value);
153 "Unable to search hash table: hret=%d\n", hret);
H A Dsssd_dbus_private.h124 sbus_opath_hash_lookup_iface(hash_table_t *table,
130 hash_table_t *table,
141 hash_table_t *table,
H A Dsssd_dbus_interface.c505 sbus_opath_hash_add_iface(hash_table_t *table, argument
537 /* first lookup existing list in hash table */
546 hret = hash_lookup(table, &key, &value);
578 hret = hash_enter(table, &key, &value);
584 talloc_steal(table, key.str);
590 talloc_steal(table, item);
599 sbus_opath_hash_has_path(hash_table_t *table, argument
607 return hash_has_key(table, &key);
611 * First @object_path is looked up in @table, if it is not found it steps up
616 sbus_opath_hash_lookup_iface(hash_table_t *table, argument
670 sbus_opath_hash_lookup_supported(TALLOC_CTX *mem_ctx, hash_table_t *table, const char *object_path, struct sbus_interface_list **_list) argument
750 sbus_nodes_hash_add(hash_table_t *table, const char *object_path, sbus_nodes_fn nodes_fn, void *handler_data) argument
809 sbus_nodes_hash_lookup(TALLOC_CTX *mem_ctx, hash_table_t *table, const char *object_path) argument
[all...]
H A Dsssd_dbus_invokers.c314 hash_table_t *table; local
323 handler_fn(sbus_req, sbus_req->intf->handler_data, &table);
338 if (table == NULL) {
349 table_iter = new_hash_iter_context(table);
/sssd/src/providers/ipa/
H A Dipa_sudo_conversion.c100 ipa_sudo_conv_store(hash_table_t *table, argument
108 if (table == NULL || key == NULL) {
116 if (value == NULL && hash_has_key(table, &hkey)) {
123 hret = hash_enter(table, &hkey, &hvalue);
129 talloc_steal(table, value);
136 ipa_sudo_conv_lookup(hash_table_t *table, argument
146 hret = hash_lookup(table, &hkey, &hvalue);
161 hash_table_t *table,
172 ret = ipa_sudo_conv_store(table, dn, NULL);
373 DEBUG(SSSDBG_CRIT_FAILURE, "Unable to create hash table [
159 store_rulemember(TALLOC_CTX *mem_ctx, struct ipa_sudo_dn_list **list, hash_table_t *table, const char *dn) argument
643 build_filter(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, hash_table_t *table, struct sdap_attr_map *map, ipa_sudo_conv_rdn_fn rdn_fn) argument
894 } table[] = {{SYSDB_NAME, SYSDB_SUDO_CACHE_AT_CN , NULL}, local
[all...]
H A Dipa_netgroups.c566 hash_table_t *table; local
594 table = state->new_netgroups;
604 table = state->new_users;
613 table = state->new_hosts;
631 /* Process all member entites and store them in the designated hash table */
640 key.str = talloc_strdup(table, orig_dn);
647 ret = hash_enter(table, &key, &value);
/sssd/src/providers/krb5/
H A Dkrb5_renew_tgt.c56 hash_table_t *table; member in struct:auth_data
114 ret = hash_lookup(auth_data->table, &auth_data->key, &value);
123 ret = hash_delete(auth_data->table, &auth_data->key);
146 ret = hash_delete(auth_data->table, &auth_data->key);
199 auth_data->table = renew_tgt_ctx->tgt_table;
/sssd/src/providers/ldap/
H A Dldap_id_cleanup.c169 static int cleanup_users_logged_in(hash_table_t *table,
270 /* If not logged in or cannot check the table, delete him */
332 static int cleanup_users_logged_in(hash_table_t *table, argument
351 ret = hash_lookup(table, &key, &value);
H A Dsdap_async_nested_groups.c147 hash_table_t *table,
159 hret = hash_values(table, &num_entries, &values);
198 static errno_t sdap_nested_group_hash_insert(hash_table_t *table, argument
208 DEBUG(SSSDBG_TRACE_ALL, "Inserting [%s] into hash table [%s]\n",
217 if (overwrite == false && hash_has_key(table, &key)) {
225 hret = hash_enter(table, &key, &value);
231 talloc_steal(table, key.str);
232 talloc_steal(table, value.ptr);
237 static errno_t sdap_nested_group_hash_entry(hash_table_t *table, argument
249 return sdap_nested_group_hash_insert(table, nam
146 sdap_nested_group_extract_hash_table(TALLOC_CTX *mem_ctx, hash_table_t *table, unsigned long *_num_entries, struct sysdb_attrs ***_entries) argument
321 sdap_nested_group_external_add(hash_table_t *table, const char *ext_member, const char *parent_group_dn) argument
[all...]
/sssd/src/responder/ifp/
H A Difp_users.c880 hash_table_t *table; local
938 ret = sss_hash_create(sbus_req, 10, &table);
940 DEBUG(SSSDBG_CRIT_FAILURE, "Unable to create hash table!\n");
953 values = sss_ldb_el_to_string_list(table, el);
960 key.str = talloc_strdup(table, extra[i]);
969 hret = hash_enter(table, &key, &value);
972 "into hash table: %d\n", hret);
977 *_out = table;
/sssd/src/tools/
H A Dsss_override.c1314 struct sss_colondb_write_field table[] = { local
1326 ret = sss_colondb_writeline(db, table);
1384 struct sss_colondb_write_field table[] = { local
1391 ret = sss_colondb_writeline(db, table);
1583 struct sss_colondb_read_field table[] = { local
1608 while ((ret = sss_colondb_readline(tmp_ctx, db, table)) == EOK) {
1839 struct sss_colondb_read_field table[] = { local
1859 while ((ret = sss_colondb_readline(tmp_ctx, db, table)) == EOK) {

Completed in 118 milliseconds

12