Searched refs:key (Results 1 - 25 of 285) sorted by relevance

1234567891011>>

/dovecot/src/auth/
H A Dmycrypt.h6 char *mycrypt(const char *key, const char *salt);
H A Dmycrypt.c20 char *mycrypt(const char *key, const char *salt) argument
22 return crypt(key, salt);
H A Ddb-dict-cache-key.c12 const struct db_dict_key *key; local
14 array_foreach(keys, key) {
15 if (strcmp(key->name, name) == 0)
16 return key;
28 const struct db_dict_key *key; local
49 key = db_dict_set_key_find(keys, name);
50 if (key != NULL)
51 str_printfa(str, "\t%s", key->key);
63 str_printfa(str, "\t%s", (*keyp)->key);
[all...]
H A Dpassdb-cache.h9 bool passdb_cache_verify_plain(struct auth_request *request, const char *key,
13 const char *key, const char **password_r,
H A Ddb-dict.c31 const struct db_dict_key *key; member in struct:db_dict_iter_key
79 DEF_STR(key),
88 .key = "",
108 parse_obsolete_setting(const char *key, const char *value, argument
114 if (strcmp(key, "password_key") == 0) {
115 /* key passdb { key=<value> format=json }
122 ctx->cur_key->key = p_strdup(ctx->conn->pool, value);
128 if (strcmp(key, "user_key") == 0) {
129 /* key userd
151 parse_setting(const char *key, const char *value, struct dict_settings_parser_ctx *ctx) argument
238 const struct db_dict_key *key; local
337 struct db_dict_iter_key *key; local
349 struct db_dict_iter_key *key; local
380 struct db_dict_iter_key *key; local
399 struct db_dict_iter_key *key; local
447 const struct db_dict_key *key; local
544 struct db_dict_iter_key *key; local
571 struct db_dict_iter_key *key; local
[all...]
/dovecot/src/lib/
H A Dsort.c9 int bsearch_strcmp(const char *key, const char *const *member) argument
11 return strcmp(key, *member);
14 int bsearch_strcasecmp(const char *key, const char *const *member) argument
16 return strcasecmp(key, *member);
H A Dtest-bsearch-insert-pos.c20 unsigned int key, len, i, idx; local
26 for (key = 0; key < max_key; key++) {
27 if (bsearch_insert_pos(&key, cur, len, sizeof(*cur),
29 success = cur[idx] == key;
31 success = cur[0] > key;
33 success = cur[len-1] < key;
35 success = cur[idx-1] < key &&
36 cur[idx+1] > key;
[all...]
H A Dstr-table.c24 char *key; local
30 while (hash_table_iterate(iter, table->hash, &key, &value))
31 i_free(key);
44 char *key; local
48 if (!hash_table_lookup_full(table->hash, str, &key, &value)) {
49 key = i_strdup(str);
56 hash_table_update(table->hash, key, POINTER_CAST(ref));
57 return key;
62 char *key; local
66 if (!hash_table_lookup_full(table->hash, *str, &key,
[all...]
H A Dbsearch-insert-pos.h29 /* If key is found, returns TRUE and sets idx_r to the position where the key
30 was found. If key isn't found, returns FALSE and sets idx_r to the position
31 where the key should be inserted. */
33 bsearch_insert_pos(const void *key, const void *base, unsigned int nmemb,
36 #define bsearch_insert_pos(key, base, nmemb, size, cmp, idx_r) \
37 bsearch_insert_pos(key, base, nmemb, size + \
38 CALLBACK_TYPECHECK(cmp, int (*)(typeof(const typeof(*key) *), \
43 array_bsearch_insert_pos_i(const struct array *array, const void *key,
46 #define array_bsearch_insert_pos(array, key, cm
[all...]
H A Dmurmurhash3.h19 void murmurhash3_32(const void * key, size_t len, uint32_t seed,
21 void murmurhash3_128(const void * key, size_t len, uint32_t seed,
H A Dhash2.h9 /* Returns hash code for the key. */
10 typedef unsigned int hash2_key_callback_t(const void *key);
11 /* Returns TRUE if the key matches the value. */
12 typedef bool hash2_cmp_callback_t(const void *key, const void *value,
24 void *hash2_lookup(const struct hash2_table *hash, const void *key) ATTR_PURE;
32 void *hash2_insert(struct hash2_table *hash, const void *key);
36 void hash2_remove(struct hash2_table *hash, const void *key);
H A Dsort.h24 #define i_bsearch(key, base, nmemb, size, cmp) \
25 bsearch(key, base, nmemb, size + \
26 CALLBACK_TYPECHECK(cmp, int (*)(typeof(const typeof(*key) *), \
30 int bsearch_strcmp(const char *key, const char *const *member) ATTR_PURE;
31 int bsearch_strcasecmp(const char *key, const char *const *member) ATTR_PURE;
H A Dtest-hash.c12 unsigned int i, key, keyidx, delidx; local
17 key = (i_rand() % KEYMAX) + 1;
19 if (hash_table_lookup(hash, POINTER_CAST(key)) == NULL) {
20 hash_table_insert(hash, POINTER_CAST(key),
22 keys[keyidx++] = key;
/dovecot/src/lib-ntlm/
H A Dntlm-des.h4 void deshash(unsigned char *dst, const unsigned char *key,
/dovecot/src/lib-imap/
H A Dimap-id.c19 static const char *imap_id_get_uname(const char *key) argument
29 if (strcasecmp(key, "os") == 0)
31 if (strcasecmp(key, "os-version") == 0)
37 static const char *imap_id_get_default(const char *key) argument
39 if (strcasecmp(key, "name") == 0)
41 if (strcasecmp(key, "version") == 0)
43 if (strcasecmp(key, "support-url") == 0)
45 if (strcasecmp(key, "support-email") == 0)
48 return imap_id_get_uname(key);
56 const char *key, *valu local
122 imap_id_log_reply_append(string_t *reply, const char *key, const char *value) argument
135 const char *const *keys, *key, *value; local
[all...]
/dovecot/src/lib-storage/
H A Dmailbox-attribute.h70 * in general. Attributes are just <key,value> pairs that are stored in a
71 * dict. The key is mangled according to the above rules before passed to
72 * the dict code. That is, the key already encodes whether the attribute is
81 * attribute (type, key, and flags), and how to handle getting and setting
175 #define MAILBOX_ATTRIBUTE_KEY_IS_USER_ACCESSIBLE(key) \
176 (strncmp(key, MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT, \
178 (strncmp(key, MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER, \
180 strncmp(key, MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT, \
236 /* Apply this attribute to the given key and its children. */
242 const char *key; /* relativ member in struct:mailbox_attribute_internal
[all...]
H A Dmail-search-mime-register.h8 const char *key; member in struct:mail_search_mime_register_arg
25 /* Find key's registered arg, or NULL if not found. */
27 mail_search_mime_register_find(const char *key);
H A Dmailbox-attribute-internal.c15 const char *key ATTR_UNUSED,
30 .key = MAILBOX_ATTRIBUTE_SPECIALUSE,
40 const char *key ATTR_UNUSED,
54 .key = MAILBOX_ATTRIBUTE_COMMENT,
63 .key = MAILBOX_ATTRIBUTE_COMMENT,
77 const char *key ATTR_UNUSED,
91 .key = MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER
102 const char *key ATTR_UNUSED,
116 .key = MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER
/dovecot/src/lib-dict/
H A Ddict-transaction-memory.c24 const char *key, const char *value)
32 change->key = p_strdup(ctx->pool, key);
37 const char *key)
45 change->key = p_strdup(ctx->pool, key);
49 const char *key, long long diff)
57 change->key = p_strdup(ctx->pool, key);
23 dict_transaction_memory_set(struct dict_transaction_context *_ctx, const char *key, const char *value) argument
36 dict_transaction_memory_unset(struct dict_transaction_context *_ctx, const char *key) argument
48 dict_transaction_memory_atomic_inc(struct dict_transaction_context *_ctx, const char *key, long long diff) argument
H A Ddict-transaction-memory.h14 const char *key; member in struct:dict_transaction_memory_change
32 const char *key, const char *value);
34 const char *key);
36 const char *key, long long diff);
/dovecot/src/lib-fs/
H A Distream-metawrap.h5 metawrap_callback_t(const char *key, const char *value, void *context);
7 /* Input stream is in format "key:value\nkey2:value2\n...\n\ncontents.
8 The given callback is called for each key/value metadata pair, and the
/dovecot/src/config/
H A Dold-set-parser.c65 const char *old_key, const char *key, const char *value)
67 obsolete(ctx, "%s has been renamed to %s", old_key, key);
68 config_parser_apply_line(ctx, CONFIG_LINE_TYPE_KEYVALUE, key, value);
205 const char *key, const char *value)
210 if (strcmp(key, "base_dir") == 0) {
216 if (strcmp(key, "protocols") == 0) {
260 key, value);
263 if (strcmp(key, "ssl_cert_file") == 0 ||
264 strcmp(key, "ssl_key_file") == 0 ||
265 strcmp(key, "ssl_ca_fil
64 set_rename(struct config_parser_context *ctx, const char *old_key, const char *key, const char *value) argument
204 old_settings_handle_root(struct config_parser_context *ctx, const char *key, const char *value) argument
363 config_apply_login_set(struct config_parser_context *ctx, struct config_section_stack *old_section, const char *old_key, const char *key, const char *value) argument
387 config_apply_mail_set(struct config_parser_context *ctx, struct config_section_stack *old_section, const char *old_key, const char *key, const char *value) argument
409 config_apply_auth_set(struct config_parser_context *ctx, const char *old_key, const char *key, const char *value) argument
437 old_settings_handle_proto(struct config_parser_context *ctx, const char *key, const char *value) argument
620 old_auth_section(struct config_parser_context *ctx, const char *key, const char *value) argument
711 old_settings_handle(struct config_parser_context *ctx, enum config_line_type type, const char *key, const char *value) argument
[all...]
/dovecot/src/imap-login/
H A Dimap-login-cmd-id.c11 const char *key; member in struct:imap_id_param_handler
15 const char *key, const char *value);
20 const char *key ATTR_UNUSED, const char *value)
27 const char *key ATTR_UNUSED, const char *value)
34 const char *key ATTR_UNUSED, const char *value)
41 const char *key ATTR_UNUSED, const char *value)
48 const char *key ATTR_UNUSED, const char *value)
57 const char *key ATTR_UNUSED, const char *value)
67 const char *key, const char *value)
69 i_assert(strncasecmp(key, "
66 cmd_id_x_forward_(struct imap_client *client, const char *key, const char *value) argument
87 imap_id_param_handler_find(const char *key) argument
101 client_try_update_info(struct imap_client *client, const char *key, const char *value) argument
117 cmd_id_handle_keyvalue(struct imap_client *client, const char *key, const char *value) argument
154 const char *key, *value; local
[all...]
/dovecot/src/lib-mail/
H A Drfc2231-parser.c11 const char *key, *value; member in struct:rfc2231_parameter
21 ret = strcmp(r1->key, r2->key);
46 const char *key, *value, *p, *p2; local
52 /* Get a list of all parameters. RFC 2231 uses key*<n>[*]=value pairs,
53 which we want to merge to a key[*]=value pair. Save them to a
58 while ((ret = rfc822_parse_content_param(ctx, &key, &value)) != 0) {
67 p = strchr(key, '*');
87 rfc2231_param.key = t_strdup_until(key, p
[all...]
/dovecot/src/lib-dcrypt/
H A Ddcrypt-private.h19 void (*ctx_sym_set_key)(struct dcrypt_context_symmetric *ctx, const unsigned char *key, size_t key_len);
25 bool (*ctx_sym_get_key)(struct dcrypt_context_symmetric *ctx, buffer_t *key);
45 void (*ctx_hmac_set_key)(struct dcrypt_context_hmac *ctx, const unsigned char *key, size_t key_len);
46 bool (*ctx_hmac_get_key)(struct dcrypt_context_hmac *ctx, buffer_t *key);
71 bool (*store_private_key)(struct dcrypt_private_key *key, enum dcrypt_key_format format, const char *cipher, buffer_t *destination,
73 bool (*store_public_key)(struct dcrypt_public_key *key, enum dcrypt_key_format format, buffer_t *destination, const char **error_r);
82 void (*unref_public_key)(struct dcrypt_public_key **key);
83 void (*unref_private_key)(struct dcrypt_private_key **key);
84 void (*ref_public_key)(struct dcrypt_public_key *key);
85 void (*ref_private_key)(struct dcrypt_private_key *key);
[all...]

Completed in 24 milliseconds

1234567891011>>