/dovecot/src/lib/ |
H A D | test-str-table.c | 4 #include "str-table.h" 8 struct str_table *table; local 12 table = str_table_init(); 14 key1 = str_table_ref(table, "str1"); 15 key2 = str_table_ref(table, "str2"); 17 key1_copy = str_table_ref(table, "str1"); 19 key2_copy = str_table_ref(table, "str2"); 22 str_table_unref(table, &key1); 24 str_table_unref(table, &key1_copy); 26 str_table_unref(table, [all...] |
H A D | str-table.c | 5 #include "str-table.h" 13 struct str_table *table; local 15 table = i_new(struct str_table, 1); 16 hash_table_create(&table->hash, default_pool, 0, str_hash, strcmp); 17 return table; 22 struct str_table *table = *_table; local 29 iter = hash_table_iterate_init(table->hash); 30 while (hash_table_iterate(iter, table->hash, &key, &value)) 33 hash_table_destroy(&table->hash); 34 i_free(table); 37 str_table_is_empty(struct str_table *table) argument 42 str_table_ref(struct str_table *table, const char *str) argument 60 str_table_unref(struct str_table *table, const char **str) argument [all...] |
H A D | var-expand-private.h | 6 const struct var_expand_table *table; member in struct:var_expand_context 7 /* caller provided function table */ 20 prepended to function table. These can be used to register some
|
H A D | var-expand.h | 19 table must end with key = 0. Returns 1 on success, 0 if the format string 24 const struct var_expand_table *table, 29 const struct var_expand_table *table, 46 var_expand_table_size(const struct var_expand_table *table) argument 49 while(table != NULL && (table[n].key != '\0' || 50 table[n].long_key != NULL))
|
H A D | test-var-expand.c | 32 static const struct var_expand_table table[] = { local 43 test_assert(var_expand(str, tests[i].in, table, &error) == tests[i].ret); 63 static const struct var_expand_table table[] = { local 79 test_assert_idx(var_expand(str, tests[i].in, table, &error) == tests[i].ret, i); 168 static const struct var_expand_table table[] = { local 187 test_assert_idx(var_expand_with_funcs(str, tests[i].in, table, func_table, &ctx, &error) == tests[i].ret, i); 271 static const struct var_expand_table table[] = { local 302 test_assert(var_expand_with_funcs(str, tests[i].in, table, 311 table, func_table, NULL, &error) == 0); 314 table, func_tabl 324 static const struct var_expand_table table[] = { local [all...] |
H A D | hash.c | 50 struct hash_table *table; member in struct:hash_iterate_context 61 static bool hash_table_resize(struct hash_table *table, bool grow); 67 struct hash_table *table; local 70 table = i_new(struct hash_table, 1); 71 table->node_pool = node_pool; 72 table->initial_size = 75 table->hash_cb = hash_cb; 76 table->key_compare_cb = key_compare_cb; 78 table->size = table 101 free_node(struct hash_table *table, struct hash_node *node) argument 111 destroy_node_list(struct hash_table *table, struct hash_node *node) argument 122 hash_table_destroy_nodes(struct hash_table *table) argument 134 struct hash_table *table = *_table; local 150 hash_table_clear(struct hash_table *table, bool free_nodes) argument 170 hash_table_lookup_node(const struct hash_table *table, const void *key, unsigned int hash) argument 188 hash_table_lookup(const struct hash_table *table, const void *key) argument 196 hash_table_lookup_full(const struct hash_table *table, const void *lookup_key, void **orig_key, void **value) argument 213 hash_table_insert_node(struct hash_table *table, void *key, void *value, enum hash_table_operation opcode) argument 295 hash_table_insert(struct hash_table *table, void *key, void *value) argument 300 hash_table_update(struct hash_table *table, void *key, void *value) argument 306 hash_table_compress(struct hash_table *table, struct hash_node *root) argument 332 hash_table_compress_removed(struct hash_table *table) argument 342 hash_table_try_remove(struct hash_table *table, const void *key) argument 363 hash_table_count(const struct hash_table *table) argument 368 hash_table_iterate_init(struct hash_table *table) argument 426 hash_table_freeze(struct hash_table *table) argument 431 hash_table_thaw(struct hash_table *table) argument 444 hash_table_resize(struct hash_table *table, bool grow) argument [all...] |
H A D | var-expand.c | 171 var_expand_short(const struct var_expand_table *table, char key, argument 176 if (table != NULL) { 177 for (t = table; !TABLE_LAST(t); t++) { 278 if (var_expand_with_funcs(salt, value, ctx->table, 414 if (ctx->table != NULL) { 415 for (t = ctx->table; !TABLE_LAST(t); t++) { 461 const struct var_expand_table *table, 478 ctx.table = table; 584 ret = var_expand_short(ctx.table, *st 460 var_expand_with_funcs(string_t *dest, const char *str, const struct var_expand_table *table, const struct var_expand_func_table *func_table, void *context, const char **error_r) argument 628 var_expand(string_t *dest, const char *str, const struct var_expand_table *table, const char **error_r) argument [all...] |
/dovecot/src/plugins/var-expand-crypt/ |
H A D | test-var-expand-crypt.c | 17 struct var_expand_table table[] = { local 50 int ret = var_expand(dest, test_cases[i].input, table, &error); 73 test_assert_idx(var_expand(input, "%{encrypt;algo=aes-128-cbc,key=%{key}:decrypted}", table, &error) == 1, i); 74 table[5].value = str_c(input); 75 test_assert_idx(var_expand(output, "%{decrypt;algo=aes-128-cbc,key=%{key}:encrypted2}", table, &error) == 1, i); 76 test_assert_idx(strcmp(str_c(output), table[4].value)==0, i);
|
/dovecot/src/auth/ |
H A D | passdb-template.c | 46 const struct var_expand_table *table; local 55 table = auth_request_get_var_expand_table(auth_request, NULL); 65 auth_request, table, NULL, error_r) <= 0)
|
H A D | userdb-template.c | 70 const struct var_expand_table *table; local 79 table = auth_request_get_var_expand_table(auth_request, NULL); 89 auth_request, table, NULL, error_r) <= 0)
|
H A D | auth-request-var-expand.c | 257 const struct var_expand_table *table, 266 return var_expand_with_funcs(dest, str, table, 255 auth_request_var_expand_with_table(string_t *dest, const char *str, const struct auth_request *auth_request, const struct var_expand_table *table, auth_request_escape_func_t *escape_func, const char **error_r) argument
|
H A D | passdb-passwd-file.c | 24 const struct var_expand_table *table; local 28 table = auth_request_get_var_expand_table(request, NULL); 36 request, table, NULL, &error) <= 0) {
|
H A D | userdb-passwd-file.c | 34 const struct var_expand_table *table; local 38 table = auth_request_get_var_expand_table(request, NULL); 50 request, table, NULL, &error) <= 0) {
|
H A D | db-lua.c | 97 /* push new table to stack */ 119 /* stack should be left with table */ 222 const struct var_expand_table *table = local 227 if (null_strcmp(table[i].long_key, key) == 0) { 228 if (table[i].value != NULL) 229 lua_pushstring(L, table[i].value); 255 /* create a table for holding few things */ 333 /* Create new table for holding values */ 346 /* set table's metatable, pops stack */ 393 "(expected string or table, go [all...] |
H A D | auth-policy.c | 425 struct var_expand_table *table; local 428 table = auth_request_get_var_expand_table_full(auth_request, auth_policy_escape_function, 430 table[0].key = '\0'; 431 table[0].long_key = "hashed_password"; 432 table[0].value = hashed_password; 433 table[1].key = '\0'; 434 table[1].long_key = "requested_username"; 435 table[1].value = requested_username; 436 if (table[0].value != NULL) 437 table[ [all...] |
H A D | db-oauth2.c | 347 struct var_expand_table *table; local 350 table = auth_request_get_var_expand_table_full(auth_request, NULL, 352 table[0].key = '$'; 353 table[0].value = oauth2_value; 354 return table; 383 table = db_oauth2_value_get_var_expand_table(req->auth_request, local 385 if (var_expand_with_funcs(dest, args[i+1], table, funcs_table, 441 struct var_expand_table table[] = { local 456 table[0].value = username_value; 457 table[ [all...] |
H A D | db-ldap.c | 626 const struct var_expand_table *table = local 653 if (var_expand_with_funcs(tmp_str, field->value, table, 1477 struct var_expand_table *table; local 1480 table = auth_request_get_var_expand_table_full(auth_request, NULL, 1482 table[0].key = '$'; 1483 table[0].value = ldap_value; 1484 return table;
|
/dovecot/src/lib-dict-backend/ |
H A D | dict-sql-settings.h | 20 const char *table; member in struct:dict_sql_map
|
/dovecot/src/lib-settings/ |
H A D | settings-parser.c | 1273 const struct var_expand_table *table, 1305 if (table == NULL) { 1311 ret = var_expand_with_funcs(str, *val + 1, table, 1336 children[i], pool, table, func_table, 1373 const struct var_expand_table *table, 1376 return settings_var_expand_with_funcs(info, set, pool, table, 1382 const struct var_expand_table *table, 1393 ret = settings_var_expand_info(info, set, pool, table, 1271 settings_var_expand_info(const struct setting_parser_info *info, void *set, pool_t pool, const struct var_expand_table *table, const struct var_expand_func_table *func_table, void *func_context, string_t *str, const char **error_r) argument 1371 settings_var_expand(const struct setting_parser_info *info, void *set, pool_t pool, const struct var_expand_table *table, const char **error_r) argument 1380 settings_var_expand_with_funcs(const struct setting_parser_info *info, void *set, pool_t pool, const struct var_expand_table *table, const struct var_expand_func_table *func_table, void *func_context, const char **error_r) argument
|