/dovecot/src/lib/ |
H A D | wildcard-match.h | 4 /* Returns TRUE if mask matches data. mask can contain '*' and '?' wildcards. */ 5 bool wildcard_match(const char *data, const char *mask); 7 bool wildcard_match_icase(const char *data, const char *mask);
|
H A D | hex-binary.c | 8 binary_to_hex_case(unsigned char *dest, const unsigned char *data, argument 21 value = data[i] >> 4; 24 value = data[i] & 0x0f; 29 const char *binary_to_hex(const unsigned char *data, size_t size) argument 33 binary_to_hex_case(dest, data, size, FALSE); 38 const char *binary_to_hex_ucase(const unsigned char *data, size_t size) argument 42 binary_to_hex_case(dest, data, size, TRUE); 47 void binary_to_hex_append(string_t *dest, const unsigned char *data, argument 53 binary_to_hex_case(buf, data, size, FALSE); 56 int hex_to_binary(const char *data, buffer_ argument [all...] |
H A D | hex-binary.h | 4 /* Convert binary to hex digits allocating return value from data stack */ 5 const char *binary_to_hex(const unsigned char *data, size_t size); 6 const char *binary_to_hex_ucase(const unsigned char *data, size_t size); 8 void binary_to_hex_append(string_t *dest, const unsigned char *data, 11 /* Convert hex to binary. data and dest may point to same value. 12 Returns 0 if all ok, -1 if data is invalid. */ 13 int hex_to_binary(const char *data, buffer_t *dest);
|
H A D | hash-method.h | 14 void (*loop)(void *context, const void *data, size_t size); 28 const char *hex = binary_to_hex(result->data, result->used); 33 const void *data, size_t data_len); 37 const buffer_t *data) 39 return t_hash_data(meth, data->data, data->used); 44 const char *data) 46 return t_hash_data(meth, data, strlen(data)); 36 t_hash_buffer(const struct hash_method *meth, const buffer_t *data) argument 43 t_hash_str(const struct hash_method *meth, const char *data) argument [all...] |
H A D | safe-memset.c | 6 void safe_memset(void *data, int c, size_t size) argument 9 volatile unsigned char *p = data; 15 memset(data, c, size);
|
H A D | read-full.c | 8 int read_full(int fd, void *data, size_t size) argument 13 ret = read(fd, data, size < SSIZE_T_MAX ? size : SSIZE_T_MAX); 17 data = PTR_OFFSET(data, ret); 24 int pread_full(int fd, void *data, size_t size, off_t offset) argument 29 ret = pread(fd, data, size < SSIZE_T_MAX ? 34 data = PTR_OFFSET(data, ret);
|
H A D | read-full.h | 4 /* Read data from file. Returns -1 if error occurred, or 0 if EOF came before 6 int read_full(int fd, void *data, size_t size); 7 int pread_full(int fd, void *data, size_t size, off_t offset);
|
H A D | wildcard-match.c | 26 static int wildcard_match_int(const char *data, const char *mask, bool icase) argument 28 const char *ma = mask, *na = data, *lsm = NULL, *lsn = NULL; 40 while (*(data++) != '\0'); 41 data-=2; 43 while (data >= na) { 48 data = --lsn; 50 if (data < na) 64 lsn = data; 72 data--; 75 if (icase ? (i_toupper(*mask) == i_toupper(*data)) 97 wildcard_match(const char *data, const char *mask) argument 102 wildcard_match_icase(const char *data, const char *mask) argument [all...] |
H A D | write-full.h | 4 /* Write data into file. Returns -1 if error occurred, or 0 if all was ok. 6 it's unspecified how much data was actually written. */ 7 int write_full(int fd, const void *data, size_t size); 8 int pwrite_full(int fd, const void *data, size_t size, off_t offset);
|
H A D | safe-memset.h | 5 Should be used instead of memset() when clearing any sensitive data. */ 6 void safe_memset(void *data, int c, size_t size);
|
H A D | hex-dec.c | 20 uintmax_t hex2dec(const unsigned char *data, unsigned int len) argument 27 if (data[i] >= '0' && data[i] <= '9') 28 value += data[i]-'0'; 29 else if (data[i] >= 'A' && data[i] <= 'F') 30 value += data[i]-'A' + 10; 31 else if (data[i] >= 'a' && data[i] <= 'f') 32 value += data[ [all...] |
H A D | bloomfilter.h | 25 typedef size_t bloomfilter_hash_func_t(const void *data, size_t len, uint32_t seed); 47 bool bloomfilter_has_data(struct bloomfilter *bf, const void *data, size_t len) ATTR_NULL(2); 50 void bloomfilter_set_data(struct bloomfilter *bf, const void *data, size_t len) ATTR_NULL(2); 53 bloomfilter_has_string(struct bloomfilter *bf, const char *data) argument 55 return bloomfilter_has_data(bf, data, strlen(data)); 59 bloomfilter_set_string(struct bloomfilter *bf, const char *data) argument 61 bloomfilter_set_data(bf, data, strlen(data)); 74 bloomfilter_has_buffer(struct bloomfilter *bf, const buffer_t *data) argument 80 bloomfilter_set_buffer(struct bloomfilter *bf, const buffer_t *data) argument [all...] |
/dovecot/src/lib-imap/ |
H A D | imap-base-subject.c | 14 char *data, *dest; local 17 data = buffer_get_modifiable_data(buf, NULL); 20 while (*data != '\0') { 21 if (*data == '\t' || *data == '\n' || *data == '\r' || 22 (*data == ' ' && (data[1] == ' ' || data[1] == '\t'))) 24 data 54 const char *data; local 83 const char *data = *datap; local 106 const char *data, *orig_data; local 158 const char *data, *orig_data; local 174 const char *data = buf->data; local [all...] |
/dovecot/src/lib-fts/ |
H A D | fts-tokenizer-common.h | 4 fts_tokenizer_delete_trailing_partial_char(const unsigned char *data, 7 fts_tokenizer_delete_trailing_invalid_char(const unsigned char *data,
|
H A D | fts-tokenizer-common.c | 7 fts_tokenizer_delete_trailing_partial_char(const unsigned char *data, argument 16 if (UTF8_IS_START_SEQ(data[pos])) 19 char_bytes = uni_utf8_char_bytes(data[pos]); 25 void fts_tokenizer_delete_trailing_invalid_char(const unsigned char *data, argument 32 (data[pos-1] == '.' || data[pos-1] == '-'))
|
/dovecot/src/lib-mail/ |
H A D | rfc822-parser.c | 55 const unsigned char *data, size_t size, 59 ctx->data = data; 60 ctx->end = data + size; 69 i_assert(*ctx->data == '('); 74 start = ++ctx->data; 75 for (; ctx->data != ctx->end; ctx->data++) { 76 switch (*ctx->data) { 84 ctx->data 54 rfc822_parser_init(struct rfc822_parser_context *ctx, const unsigned char *data, size_t size, string_t *last_comment) argument [all...] |
H A D | test-quoted-printable.c | 11 const char *data[] = { local 24 for (i = 0; i < N_ELEMENTS(data); i += 2) { 25 quoted_printable_q_decode((const void *)data[i], strlen(data[i]), 27 test_assert(strcmp(data[i+1], str_c(buf)) == 0);
|
/dovecot/src/plugins/push-notification/ |
H A D | push-notification-event-messageexpunge.c | 19 struct push_notification_event_messageexpunge_data *data = event->data; local 21 if (data != NULL) { 31 struct push_notification_event_messageexpunge_data *data; local 33 data = push_notification_txn_msg_get_eventdata(msg, EVENT_NAME); 34 if (data == NULL) { 35 data = p_new(ptxn->pool, 37 data->expunge = TRUE; 38 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
|
H A D | push-notification-event-messageappend.c | 31 struct push_notification_event_messageappend_data *data = event->data; local 33 if (data->from != NULL) { 34 i_debug("%s: From [%s]", EVENT_NAME, data->from); 37 if (data->snippet != NULL) { 38 i_debug("%s: Snippet [%s]", EVENT_NAME, data->snippet); 41 if (data->subject != NULL) { 42 i_debug("%s: Subject [%s]", EVENT_NAME, data->subject); 45 if (data->to != NULL) { 46 i_debug("%s: To [%s]", EVENT_NAME, data 58 struct push_notification_event_messageappend_data *data; local [all...] |
H A D | push-notification-event-messagenew.c | 34 struct push_notification_event_messagenew_data *data = event->data; local 37 if (data->date != -1) { 38 tm = gmtime(&data->date); 40 iso8601_date_create_tm(tm, data->date_tz)); 43 if (data->from != NULL) { 44 i_debug("%s: From [%s]", EVENT_NAME, data->from); 47 if (data->snippet != NULL) { 48 i_debug("%s: Snippet [%s]", EVENT_NAME, data->snippet); 51 if (data 68 struct push_notification_event_messagenew_data *data; local [all...] |
H A D | push-notification-event-mailboxrename.c | 18 struct push_notification_event_mailboxrename_data *data = event->data; local 21 EVENT_NAME, data->old_mbox); 30 struct push_notification_event_mailboxrename_data *data; local 32 data = p_new(ptxn->pool, 34 data->old_mbox = mailbox_get_vname(old); 36 push_notification_txn_mbox_set_eventdata(ptxn, mbox, ec, data);
|
H A D | push-notification-event-flagsset.c | 29 struct push_notification_event_flagsset_data *data = event->data; local 32 if ((data->flags_set & MAIL_ANSWERED) != 0) { 35 if ((data->flags_set & MAIL_FLAGGED) != 0) { 38 if ((data->flags_set & MAIL_DELETED) != 0) { 41 if ((data->flags_set & MAIL_SEEN) != 0) { 44 if ((data->flags_set & MAIL_DRAFT) != 0) { 48 array_foreach(&data->keywords_set, keyword) { 58 struct push_notification_event_flagsset_data *data; local 60 data 82 struct push_notification_event_flagsset_data *data; local 126 struct push_notification_event_flagsset_data *data; local 149 struct push_notification_event_flagsset_data *data = event->data; local [all...] |
/dovecot/src/lib-otp/ |
H A D | otp-parse.h | 4 int otp_read_hex(const char *data, const char **endptr, unsigned char *hash); 5 int otp_read_words(const char *data, const char **endptr, unsigned char *hash); 6 int otp_read_new_params(const char *data, const char **endptr, 9 int otp_parse_response(const char *data, unsigned char *hash, bool hex); 10 int otp_parse_init_response(const char *data, struct otp_state *new_state,
|
H A D | otp-parse.c | 21 static inline const char *otp_skip_lws(const char *data) argument 23 while (*data != '\0' && IS_LWS(*data)) 24 data++; 25 return data; 28 static inline bool otp_check_tail(const char *data) argument 30 data = otp_skip_lws(data); 32 return *data != 0; 35 int otp_read_hex(const char *data, cons argument 77 otp_read_words(const char *data, const char **endptr, unsigned char *hash) argument 146 otp_read_new_params(const char *data, const char **endptr, struct otp_state *state) argument 177 otp_parse_response(const char *data, unsigned char *hash, bool hex) argument 188 otp_parse_init_response(const char *data, struct otp_state *new_state, unsigned char *hash, bool hex, const char **error) argument [all...] |
H A D | otp-parity.h | 6 static inline unsigned int otp_parity(unsigned char *data) argument 11 parity += parity_table[*data++];
|