/sssd-io/src/util/ |
H A D | sss_ptr_hash.h | 28 * Create a new hash table with string key and talloc pointer value with 36 * Add a new value @talloc_ptr of type @type into the table. 38 * If the @key already exist in the table and @override is true, 42 * removed from the hash table. 48 errno_t _sss_ptr_hash_add(hash_table_t *table, 55 * Add a new value @talloc_ptr of type @type into the table. 58 * removed from the hash table. 64 #define sss_ptr_hash_add(table, key, talloc_ptr, type) \ 65 _sss_ptr_hash_add(table, key, talloc_ptr, #type, false) 68 * Add a new value @talloc_ptr of type @type into the table [all...] |
H A D | sss_ptr_hash.c | 54 hash_table_t *table; member in struct:sss_ptr_hash_spy 64 /* This results in removing entry from hash table and freeing the value. */ 65 sss_ptr_hash_delete(spy->table, spy->key, false); 71 hash_table_t *table, 89 spy->table = table; 109 sss_ptr_hash_value_create(hash_table_t *table, argument 115 value = talloc_zero(table, struct sss_ptr_hash_value); 120 value->spy = sss_ptr_hash_spy_create(talloc_ptr, table, key, value); 170 hash_table_t *table; local 70 sss_ptr_hash_spy_create(TALLOC_CTX *mem_ctx, hash_table_t *table, const char *key, struct sss_ptr_hash_value *value) argument 195 _sss_ptr_hash_add(hash_table_t *table, const char *key, void *talloc_ptr, const char *type, bool override) argument 241 sss_ptr_hash_lookup_internal(hash_table_t *table, const char *key) argument 273 _sss_ptr_hash_lookup(hash_table_t *table, const char *key, const char *type) argument 291 sss_ptr_hash_delete(hash_table_t *table, const char *key, bool free_value) argument 330 sss_ptr_hash_delete_all(hash_table_t *table, bool free_values) argument 366 sss_ptr_hash_has_key(hash_table_t *table, const char *key) argument [all...] |
H A D | find_uid.h | 4 Create uid table 33 errno_t get_uid_table(TALLOC_CTX *mem_ctx, hash_table_t **table);
|
H A D | find_uid.c | 4 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 D | util.c | 197 hash_table_t *table; local 237 error = hash_create(10, &table, NULL, NULL); 246 /* Add all entries from list 1 into a hash table */ 250 error = hash_enter(table, &key, &value); 262 error = hash_delete(table, &key); 308 /* Get the leftover entries in the hash table */ 310 error = hash_keys(table, &count, &keys); 367 hash_destroy(table); 393 hash_table_t *table; local 402 hret = hash_create_ex(count, &table, directory_bit [all...] |
/sssd-io/src/tests/cmocka/data_provider/ |
H A D | test_dp_request_table.c | 28 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-io/src/providers/data_provider/ |
H A D | dp_request_table.c | 44 DEBUG(SSSDBG_TRACE_FUNC, "Removing [%s] from reply table\n", value->key); 46 dp_req_table_del(value->table, value->key); 96 struct dp_table_value *dp_req_table_lookup(hash_table_t *table, argument 106 hret = hash_lookup(table, &hkey, &hvalue); 110 DEBUG(SSSDBG_CRIT_FAILURE, "Unable to search hash table [%d]\n", hret); 117 static errno_t dp_req_table_new_item(hash_table_t *table, argument 134 table_value->table = table; 156 hret = hash_enter(table, &hkey, &hvalue); 158 DEBUG(SSSDBG_CRIT_FAILURE, "Unable to enter value into hash table " 174 dp_req_table_mod_item(hash_table_t *table, struct dp_table_value *table_value, struct sbus_request *sbus_req) argument 190 dp_req_table_add(hash_table_t *table, const char *key, struct tevent_req *req, struct sbus_request *sbus_req) argument 215 dp_req_table_del(hash_table_t *table, const char *key) argument 237 dp_req_table_del_and_free(hash_table_t *table, const char *key) argument 254 dp_req_table_has_key(hash_table_t *table, const char *key) argument [all...] |
H A D | dp_private.h | 94 * 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-io/src/tests/cmocka/ |
H A D | test_find_uid.c | 68 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 D | test_tools_colondb.c | 74 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 D | sbus_internal_tests.c | 80 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-io/src/tools/common/ |
H A D | sss_colondb.c | 107 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 D | sss_colondb.h | 78 * @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-io/src/tests/ |
H A D | find_uid-tests.c | 70 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);
|
/sssd-io/src/sbus/ |
H A D | sssd_dbus_common_signals.c | 33 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 D | sssd_dbus_private.h | 129 sbus_opath_hash_lookup_iface(hash_table_t *table, 135 hash_table_t *table, 144 hash_table_t *table,
|
H A D | sssd_dbus_signals.c | 71 sbus_incoming_signal_hash_add(hash_table_t *table, argument 102 ret = sss_ptr_hash_add(table, key, data, struct sbus_incoming_signal_data); 107 talloc_steal(table, data); 117 sbus_incoming_signal_hash_lookup(hash_table_t *table, argument 129 data = sss_ptr_hash_lookup(table, key, struct sbus_incoming_signal_data);
|
H A D | sssd_dbus_interface.c | 510 sbus_opath_hash_add_iface(hash_table_t *table, argument 539 /* first lookup existing list in hash table */ 541 list = sss_ptr_hash_lookup(table, object_path, struct sbus_interface_list); 566 ret = sss_ptr_hash_add(table, object_path, list, 572 talloc_steal(table, item); 581 sbus_opath_hash_has_path(hash_table_t *table, argument 584 return sss_ptr_hash_has_key(table, object_path); 588 * First @object_path is looked up in @table, if it is not found it steps up 593 sbus_opath_hash_lookup_iface(hash_table_t *table, argument 613 list = sss_ptr_hash_lookup(table, lookup_pat 636 sbus_opath_hash_lookup_supported(TALLOC_CTX *mem_ctx, hash_table_t *table, const char *object_path, struct sbus_interface_list **_list) argument 707 sbus_nodes_hash_add(hash_table_t *table, const char *object_path, sbus_nodes_fn nodes_fn, void *handler_data) argument 733 sbus_nodes_hash_lookup(TALLOC_CTX *mem_ctx, hash_table_t *table, const char *object_path) argument [all...] |
H A D | sssd_dbus_invokers.c | 314 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-io/src/responder/nss/ |
H A D | nss_enum.c | 270 /* Free enumeration context. This will also remove it from the table. */ 309 nss_setnetgrent_set_enum_ctx(hash_table_t *table, argument 315 enum_ctx = sss_ptr_hash_lookup(table, netgroup, struct nss_enum_ctx); 320 enum_ctx = talloc_zero(table, struct nss_enum_ctx); 325 ret = sss_ptr_hash_add(table, netgroup, enum_ctx, struct nss_enum_ctx); 328 "Unable to add enumeration context into table [%d]: %s\n", 342 hash_table_t *table, 348 enum_ctx = nss_setnetgrent_set_enum_ctx(table, netgroup); 338 nss_setnetgrent_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct cli_ctx *cli_ctx, enum cache_req_type type, hash_table_t *table, const char *netgroup) argument
|
H A D | nss_private.h | 134 hash_table_t *table,
|
/sssd-io/src/providers/ipa/ |
H A D | ipa_sudo_conversion.c | 100 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 654 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 954 } table[] = {{SYSDB_NAME, SYSDB_SUDO_CACHE_AT_CN , NULL}, local [all...] |
H A D | ipa_netgroups.c | 566 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-io/src/providers/krb5/ |
H A D | krb5_renew_tgt.c | 56 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-io/src/providers/ldap/ |
H A D | ldap_id_cleanup.c | 169 static int cleanup_users_logged_in(hash_table_t *table, 271 /* If not logged in or cannot check the table, delete him */ 333 static int cleanup_users_logged_in(hash_table_t *table, argument 352 ret = hash_lookup(table, &key, &value);
|