Searched refs:fields (Results 1 - 25 of 96) sorted by relevance

1234

/dovecot/src/auth/
H A Dauth-fields.c9 #include "auth-fields.h"
13 ARRAY_TYPE(auth_field) fields, snapshot_fields;
20 struct auth_fields *fields; local
22 fields = p_new(pool, struct auth_fields, 1);
23 fields->pool = pool;
24 return fields;
27 static void auth_fields_snapshot_preserve(struct auth_fields *fields) argument
29 if (!fields->snapshotted || array_is_created(&fields->snapshot_fields))
32 p_array_init(&fields
38 auth_fields_find_idx(struct auth_fields *fields, const char *key, unsigned int *idx_r) argument
57 auth_fields_add(struct auth_fields *fields, const char *key, const char *value, enum auth_field_flags flags) argument
82 auth_fields_remove(struct auth_fields *fields, const char *key) argument
92 auth_fields_find(struct auth_fields *fields, const char *key) argument
104 auth_fields_exists(struct auth_fields *fields, const char *key) argument
109 auth_fields_reset(struct auth_fields *fields) argument
117 auth_fields_import_prefixed(struct auth_fields *fields, const char *prefix, const char *str, enum auth_field_flags flags) argument
139 auth_fields_import(struct auth_fields *fields, const char *str, enum auth_field_flags flags) argument
152 auth_fields_append(struct auth_fields *fields, string_t *dest, enum auth_field_flags flags_mask, enum auth_field_flags flags_result) argument
180 auth_fields_is_empty(struct auth_fields *fields) argument
186 auth_fields_booleanize(struct auth_fields *fields, const char *key) argument
197 auth_fields_snapshot(struct auth_fields *fields) argument
216 auth_fields_rollback(struct auth_fields *fields) argument
[all...]
H A Dauth-fields.h20 void auth_fields_add(struct auth_fields *fields,
23 void auth_fields_reset(struct auth_fields *fields);
24 void auth_fields_remove(struct auth_fields *fields, const char *key);
26 const char *auth_fields_find(struct auth_fields *fields, const char *key);
27 bool auth_fields_exists(struct auth_fields *fields, const char *key);
29 void auth_fields_import(struct auth_fields *fields, const char *str,
31 void auth_fields_import_prefixed(struct auth_fields *fields, const char *prefix,
33 const ARRAY_TYPE(auth_field) *auth_fields_export(struct auth_fields *fields);
34 /* Append fields where (flag & flags_mask) == flags_result. */
35 void auth_fields_append(struct auth_fields *fields, string_
[all...]
H A Dpassword-scheme-pbkdf2.c54 const char *const *fields; local
66 fields = t_strsplit(t_strndup(raw_password + 3, size - 3), "$");
67 salt = fields[0];
68 if (str_array_length(fields) != 3 ||
69 str_to_uint(fields[1], &rounds) < 0) {
74 if (strlen(fields[2]) != sizeof(key1)*2 ||
75 hex_to_binary(fields[2], &buf) < 0) {
H A Dtest-db-dict.c17 struct db_dict_field fields[] = { local
32 buffer_create_from_const_data(&fieldbuf, fields, sizeof(fields));
35 array_create_from_buffer(&fieldarr, &fieldbuf, sizeof(fields[0]));
H A Duserdb-lua.c40 const char *const *fields = t_strsplit_spaces(args, " "); local
41 while(*fields != NULL) {
42 if (strncmp(*fields, "file=", 5) == 0) {
43 module->file = p_strdup(pool, (*fields)+5);
44 } else if (strncmp(*fields, "blocking=", 9) == 0) {
45 const char *value = (*fields)+9;
55 } else if (strncmp(*fields, "cache_key=", 10) == 0) {
56 if (*((*fields)+10) != '\0')
57 cache_key = (*fields)+10;
61 i_fatal("Unsupported parameter %s", *fields);
[all...]
H A Dpassdb-lua.c112 const char *const *fields = t_strsplit_spaces(args, " "); local
113 while(*fields != NULL) {
114 if (strncmp(*fields, "file=", 5) == 0) {
115 module->file = p_strdup(pool, (*fields)+5);
116 } else if (strncmp(*fields, "blocking=", 9) == 0) {
117 const char *value = (*fields)+9;
127 } else if (strncmp(*fields, "cache_key=", 10) == 0) {
128 if (*((*fields)+10) != '\0')
129 cache_key = (*fields)+10;
132 } else if (strncmp(*fields, "schem
[all...]
H A Dpassword-scheme-scram.c57 const char *const *fields; local
61 fields = t_strsplit(t_strndup(credentials, size), ",");
63 if (str_array_length(fields) != 4) {
67 if (str_to_uint(fields[0], iter_count_r) < 0 ||
73 *salt_r = fields[1];
76 if (base64_decode(fields[2], strlen(fields[2]), NULL, buf) < 0 ||
84 if (base64_decode(fields[3], strlen(fields[3]), NULL, buf) < 0 ||
H A Dmech-scram-sha1.c122 const char *const *fields, *login_username = NULL; local
125 fields = t_strsplit(t_strndup(data, size), ",");
126 if (str_array_length(fields) < 4) {
130 gs2_cbind_flag = fields[0];
131 authzid = fields[1];
132 username = fields[2];
133 nonce = fields[3];
135 /* Order of fields is fixed:
292 const char **fields, *cbind_input, *nonce_str; local
296 fields
[all...]
H A Dmech-oauth2.c104 const char *const *fields = local
106 for(ptr = fields; *ptr != NULL; ptr++) {
130 /* do not fail on unexpected fields */
163 const char **fields = local
167 if (*fields == NULL || *(fields[0]) == '\0') {
175 for(ptr = t_strsplit_spaces(fields[0], ","); *ptr != NULL; ptr++) {
214 for(ptr = fields; *ptr != NULL; ptr++) {
227 /* do not fail on unexpected fields */
/dovecot/src/lib-index/
H A Dmail-cache-decisions.c18 only these fields.
51 Different mailboxes have different decisions. Different fields have
86 dec = cache->fields[field].field.decision;
92 if (ioloop_time - cache->fields[field].field.last_used > 3600*24) {
94 cache->fields[field].field.last_used = (uint32_t)ioloop_time;
110 if (uid < cache->fields[field].uid_highwater ||
119 cache->fields[field].field.decision = MAIL_CACHE_DECISION_YES;
120 cache->fields[field].decision_dirty = TRUE;
125 cache->fields[field].uid_highwater = uid;
140 if (cache->fields[fiel
166 struct mail_cache_field *fields = local
[all...]
H A Dmail-cache-fields.c17 (cache)->fields[field_idx].used)
53 const struct mail_cache_field *field = &cache->fields[idx].field;
78 internal fields and for mail_*cache_fields settings? */
81 orig = &cache->fields[newfield->idx];
102 struct mail_cache_field *fields,
113 fields[i].name, &name, &value)) {
114 fields[i].idx = POINTER_CAST_TO(value, unsigned int);
115 mail_cache_field_update(cache, &fields[i]);
122 if (strcasecmp(fields[i].name, fields[
101 mail_cache_register_fields(struct mail_cache *cache, struct mail_cache_field *fields, unsigned int fields_count) argument
[all...]
/dovecot/src/stats/
H A Dstats-settings.h9 const char *fields; member in struct:stats_metric_settings
H A Dstats-metrics.c23 /* generate fields for event filter */
38 query_r->fields = filter_fields;
53 const char *const *fields; local
59 fields = t_strsplit_spaces(set->fields, " ");
60 metric->fields_count = str_array_length(fields);
62 metric->fields = p_new(metrics->pool, struct metric_field,
65 metric->fields[i].field_key =
66 p_strdup(metrics->pool, fields[i]);
67 metric->fields[
[all...]
/dovecot/src/lib-old-stats/
H A Dstats-parser.h18 bool stats_parser_diff(const struct stats_parser_field *fields,
22 void stats_parser_add(const struct stats_parser_field *fields,
H A Dstats-parser.c42 bool stats_parser_diff(const struct stats_parser_field *fields, argument
50 unsigned int offset = fields[i].offset;
55 switch (fields[i].type) {
57 switch (fields[i].size) {
61 fields[i].name,
72 fields[i].name, *n2, *n1);
85 fields[i].name,
106 void stats_parser_add(const struct stats_parser_field *fields, argument
113 unsigned int offset = fields[i].offset;
117 switch (fields[
[all...]
/dovecot/src/lib-http/
H A Dhttp-header.c9 ARRAY_TYPE(http_header_field) fields;
19 p_array_init(&header->fields, pool, init_count);
29 pool_t pool = array_get_pool(&header->fields);
32 hfield = array_append_space(&header->fields);
45 ARRAY_TYPE(http_header_field) *hfields = &header->fields;
58 return &header->fields;
66 array_foreach(&header->fields, hfield) {
87 array_foreach(&header->fields, hfield) {
H A Dtest-http-header-parser.c21 const struct http_header_parse_result *fields; member in struct:http_header_parse_test
112 .fields = valid_header_parse_result1
124 .fields = valid_header_parse_result2
139 .fields = valid_header_parse_result3
155 .fields = valid_header_parse_result4,
164 .fields = valid_header_parse_result5
169 .fields = valid_header_parse_result6
174 .fields = valid_header_parse_result7
218 result = &valid_header_parse_tests[i].fields[j];
316 .fields
[all...]
/dovecot/src/lib-storage/
H A Dmailbox-header.c13 struct mail_cache_field *fields, header_field = { local
35 fields = t_new(struct mail_cache_field, count);
40 fields[j++] = header_field;
43 mail_cache_register_fields(box->cache, fields, count);
57 ctx->idx[i] = fields[i].idx;
58 dest_name[i] = p_strdup(pool, fields[i].name + strlen("hdr."));
/dovecot/src/doveadm/
H A Ddoveadm-stats.c24 static void stats_dump(const char *path, const char *const *fields, bool reset) argument
28 unsigned int i, fields_count = str_array_length(fields);
38 str_append_tabescaped(cmd, fields[i]);
55 doveadm_print_header_simple(fields[i]);
93 const char *const fields[] = { local
96 stats_dump(path, fields, reset);
H A Ddoveadm-mail-server.c187 const char *auth_socket_path, *proxy_host, *proxy_hostip, *const *fields; local
213 pool, &fields);
215 *error_r = fields[0] != NULL ?
216 t_strdup(fields[0]) : "passdb lookup failed";
226 for (i = 0; fields[i] != NULL; i++) {
227 if (strncmp(fields[i], "proxy", 5) == 0 &&
228 (fields[i][5] == '\0' || fields[i][5] == '='))
230 else if (strncmp(fields[i], "host=", 5) == 0)
231 proxy_host = fields[
[all...]
/dovecot/src/lib-dict-backend/
H A Ddict.conf9 fields {
21 fields {
/dovecot/src/lib-storage/index/imapc/
H A Dimapc-mail-fetch.c204 imapc_mail_send_fetch(struct mail *_mail, enum mail_fetch_field fields, argument
223 /* drop any fields that we may already be fetching currently */
224 fields &= ~mail->fetching_fields;
227 if (fields == 0 && headers == NULL)
249 if ((fields & MAIL_FETCH_STREAM_BODY) != 0)
250 fields |= MAIL_FETCH_STREAM_HEADER;
254 if ((fields & MAIL_FETCH_RECEIVED_DATE) != 0)
256 if ((fields & (MAIL_FETCH_PHYSICAL_SIZE | MAIL_FETCH_VIRTUAL_SIZE)) != 0)
258 if ((fields & MAIL_FETCH_GUID) != 0) {
262 if ((fields
335 enum mail_fetch_field fields = 0; local
382 enum mail_fetch_field fields; local
411 imapc_mail_have_fields(struct imapc_mail *imail, enum mail_fetch_field fields) argument
448 imapc_mail_fetch(struct mail *_mail, enum mail_fetch_field fields, const char *const *headers) argument
[all...]
/dovecot/src/plugins/mail-log/
H A Dmail-log-plugin.c79 enum mail_log_field fields; member in struct:mail_log_user
129 static enum mail_log_field field, fields = 0; local
135 fields |= field;
137 return fields;
163 muser->fields = str == NULL ? MAIL_LOG_DEFAULT_FIELDS :
209 mail_log_update_wanted_fields(struct mail *mail, enum mail_log_field fields) argument
216 if ((fields & MAIL_LOG_FIELD_MSGID) != 0)
218 if ((fields & MAIL_LOG_FIELD_FROM) != 0)
220 if ((fields & MAIL_LOG_FIELD_SUBJECT) != 0)
228 if ((fields
[all...]
/dovecot/src/lib-master/
H A Dmaster-service-haproxy.c467 const char *const *fields; local
480 fields = t_strsplit((char *)data, " ");
481 i_assert(strcmp(*fields, "PROXY") == 0);
482 fields++;
485 if (*fields == NULL) {
491 if (strcmp(*fields, "TCP4") == 0) {
493 } else if (strcmp(*fields, "TCP6") == 0) {
495 } else if (strcmp(*fields, "UNKNOWN") == 0) {
500 "(protocol=`%s', rip=%s)", str_sanitize(*fields, 64),
504 fields
[all...]
/dovecot/src/lib/
H A Devent-filter.c33 const struct event_field *fields; member in struct:event_filter_query_internal
118 const struct event_filter_field *fields)
123 for (count = 0; fields[count].key != NULL; count++) ;
129 int_fields[i].key = p_strdup(filter->pool, fields[i].key);
132 int_fields[i].value.str = p_strdup(filter->pool, fields[i].value);
133 if (str_to_intmax(fields[i].value, &int_fields[i].value.intmax) < 0) {
138 int_query->fields = int_fields;
160 if (query->fields != NULL)
161 event_filter_add_fields(filter, int_query, query->fields);
190 ARRAY(struct event_filter_field) fields;
116 event_filter_add_fields(struct event_filter *filter, struct event_filter_query_internal *int_query, const struct event_filter_field *fields) argument
[all...]

Completed in 455 milliseconds

1234