Searched defs:ptr (Results 1 - 25 of 35) sorted by relevance

12

/dovecot/src/lib-ldap/
H A Dldap-entry.c34 const char *ptr = p_strndup(result->pool, values[i]->bv_val, values[i]->bv_len); local
35 array_append(&attr->values, &ptr, 1);
/dovecot/src/lib-ssl-iostream/
H A Ddovecot-openssl-common.c31 static void *dovecot_openssl_realloc(void *ptr, size_t size, const char *u0 ATTR_UNUSED, int u1 ATTR_UNUSED) argument
33 static void *dovecot_openssl_realloc(void *ptr, size_t size)
36 void *mem = realloc(ptr, size);
45 static void dovecot_openssl_free(void *ptr, const char *u0 ATTR_UNUSED, int u1 ATTR_UNUSED) argument
47 static void dovecot_openssl_free(void *ptr)
50 free(ptr);
/dovecot/src/lib-index/
H A Dtest-mail-index-sync-ext.c40 void *ptr; local
55 ptr = PTR_OFFSET(ctx.view->map->rec_map->records, ext->record_offset);
65 { _type *n = ptr; *n = _value; } \
H A Dmail-index-transaction.c359 hook_mail_index_transaction_created_t *const *ptr; local
360 array_foreach(&hook_mail_index_transaction_created, ptr) {
361 (*ptr)(t);
/dovecot/src/lib/
H A Dbacktrace-string.c48 static int walk_callback(uintptr_t ptr, int signo ATTR_UNUSED, argument
56 str_printfa(ctx->str, "0x%p", (void *)ptr);
H A Dbase64.c50 unsigned char *ptr = start; local
54 for (src_pos = 0; src_size - src_pos > 2; src_pos += 3, ptr += 4) {
55 ptr[0] = b64enc[src_c[src_pos] >> 2];
56 ptr[1] = b64enc[((src_c[src_pos] & 0x03) << 4) |
58 ptr[2] = b64enc[((src_c[src_pos+1] & 0x0f) << 2) |
60 ptr[3] = b64enc[src_c[src_pos+2] & 0x3f];
63 i_assert(ptr <= start + res_size);
69 ptr[0] = b64enc[src_c[src_pos] >> 2];
70 ptr[1] = b64enc[(src_c[src_pos] & 0x03) << 4];
71 ptr[
[all...]
H A Distream-crlf.c42 const unsigned char *data, *ptr, *src, *src_end; local
71 ptr = memchr(src, '\n', src_end - src);
72 if (ptr == NULL)
73 ptr = src_end;
76 copy_len = ptr - src;
102 i_assert(src == ptr + 1);
H A Dmd4.c50 (*(const uint32_t *)&ptr[(n) * 4])
56 (uint_fast32_t)ptr[(n) * 4] | \
57 ((uint_fast32_t)ptr[(n) * 4 + 1] << 8) | \
58 ((uint_fast32_t)ptr[(n) * 4 + 2] << 16) | \
59 ((uint_fast32_t)ptr[(n) * 4 + 3] << 24))
71 const unsigned char *ptr; local
75 ptr = data;
154 ptr += 64;
162 return ptr;
H A Dmd5.c51 (*(const uint32_t *)&ptr[(n) * 4])
57 (uint_fast32_t)ptr[(n) * 4] | \
58 ((uint_fast32_t)ptr[(n) * 4 + 1] << 8) | \
59 ((uint_fast32_t)ptr[(n) * 4 + 2] << 16) | \
60 ((uint_fast32_t)ptr[(n) * 4 + 3] << 24))
72 const unsigned char *ptr; local
76 ptr = data;
166 ptr += 64;
174 return ptr;
H A Dbuffer.c383 unsigned char *ptr = buffer_get_modifiable_data(buf, &bytes); local
387 ptr[i] = (ptr[i]>>(8-bits)) +
388 ((ptr[i-1]&(0xff>>(bits)))<<bits);
389 ptr[0] = ptr[0]>>(8-bits);
/dovecot/src/lib-mail/
H A Dqp-encoder.c66 const char *ptr = strchr(qp->linebreak, '\n'); local
68 if (ptr != NULL)
69 qp->line_len = strlen(ptr+1);
H A Dmessage-part-data.c508 const char *const *ptr; local
518 for(ptr = types; *ptr != NULL; ptr++) {
519 bool exclude = (**ptr == '!');
520 if (wildcard_match_icase(content_type, (*ptr)+(exclude?1:0)))
H A Dmessage-parser.c276 const unsigned char *ptr; local
283 ptr = memchr(block_r->data, '\n', block_r->size);
284 if (ptr == NULL) {
293 block_r->size = (ptr - block_r->data) + 1;
/dovecot/src/auth/
H A Dmech-oauth2.c103 const char *const *ptr; local
106 for(ptr = fields; *ptr != NULL; ptr++) {
107 if (strncmp(*ptr,"user=", 5) == 0) {
110 const char *username = (*ptr)+5;
118 } else if (strncmp(*ptr,"auth=", 5) == 0) {
119 const char *value = (*ptr)+5;
161 const char *const *ptr; local
175 for(ptr
[all...]
H A Ddb-lua.c237 const luaL_Reg *ptr = auth_request_methods; local
238 while(ptr->name != NULL) {
239 if (null_strcmp(key, ptr->name) == 0) {
240 lua_pushcfunction(L, ptr->func);
243 ptr++;
/dovecot/src/lib-old-stats/
H A Dstats-parser.c149 const void *ptr = CONST_PTR_OFFSET(data, field->offset); local
155 const uint32_t *n = ptr;
161 const uint64_t *n = ptr;
171 const struct timeval *tv = ptr;
/dovecot/src/lib-dict-backend/
H A Ddict-cdb.c186 const char *key, **ptr; local
196 for(ptr = ctx->paths; *ptr != NULL; ptr++) {
198 strcmp(key, *ptr) == 0) ||
200 strncmp(key, *ptr, strlen(*ptr)) == 0) ||
202 strncmp(key, *ptr, strlen(*ptr)) == 0 &&
203 strchr(key + strlen(*ptr), '/')
[all...]
H A Ddict-ldap-settings.c143 const char *ptr = ctx->cur_map.filter; local
144 if (*ptr != '(')
146 while(*ptr != '\0') ptr++;
147 ptr--;
148 if (*ptr != ')')
/dovecot/src/lib-lua/
H A Ddlua-script.c49 static void *dlua_alloc(void *ctx, void *ptr, size_t osize, size_t nsize) argument
55 p_free(script->pool, ptr);
58 return p_realloc(script->pool, ptr, osize, nsize);
/dovecot/src/lib-settings/
H A Dsettings.c61 void *ptr = STRUCT_MEMBER_P(base, def->offset); local
65 *((char **)ptr) = p_strdup(pool, value);
70 return get_uint(value, (unsigned int *) ptr);
72 return get_bool(value, (bool *) ptr);
/dovecot/src/plugins/mail-crypt/
H A Dmail-crypt-acl-plugin.c115 const char *ptr; local
117 if ((ptr = strchr(*hash, '/')) != NULL)
118 ptr++;
120 ptr = *hash;
121 if ((ret = mail_crypt_box_unset_shared_key(t, ptr, dest_user,
/dovecot/src/lib-dcrypt/
H A Dtest-stream.c162 const unsigned char *ptr;
165 while(i_stream_read_data(is_2, &ptr, &siz, 0)>0) {
166 o_stream_nsend(os_2, ptr, siz);
185 const unsigned char *ptr; local
210 while(i_stream_read_data(is_2, &ptr, &siz, 0)>=0) {
218 test_assert_idx(siz == 0 || memcmp(ptr, payload + pos, siz) == 0, pos);
236 const unsigned char *ptr; local
261 while(i_stream_read_data(is_2, &ptr, &siz, 0)>=0) {
269 test_assert_idx(siz == 0 || memcmp(ptr, payload + pos, siz) == 0, pos);
285 const unsigned char *ptr; local
329 const unsigned char *ptr; local
382 const unsigned char *ptr; local
428 const unsigned char *ptr; local
[all...]
H A Dostream-encrypt.c288 const unsigned char *ptr = temp_key->data; local
291 dcrypt_ctx_sym_set_key(dctx, ptr, 32);
292 dcrypt_ctx_sym_set_iv(dctx, ptr+32, 16);
333 const unsigned char *ptr; local
360 ptr = keydata->data;
368 if (o_stream_encrypt_key_for_pubkey_v2(stream, malg, ptr, kl, stream->pub, res) != 0) {
377 hash->loop(hctx, ptr, kl);
399 dcrypt_ctx_sym_set_key(stream->ctx_sym, ptr, dcrypt_ctx_sym_get_key_length(stream->ctx_sym));
400 ptr += dcrypt_ctx_sym_get_key_length(stream->ctx_sym);
401 dcrypt_ctx_sym_set_iv(stream->ctx_sym, ptr, dcrypt_ctx_sym_get_iv_lengt
453 const unsigned char *ptr = iov[i].iov_base; local
[all...]
/dovecot/src/doveadm/
H A Dclient-connection-tcp.c71 const char *ptr, *start; local
94 while((ptr = strchr(start, '\n'))!=NULL) {
96 o_stream_nsend(log_out, start, ptr-start+1);
97 str_delete(str, 0, ptr-start+1);
H A Ddoveadm-cmd.c56 const struct exit_code_str *ptr = &exit_code_strings[i]; local
57 if (ptr->code == code)
58 return ptr->str;
66 const struct exit_code_str *ptr = &exit_code_strings[i]; local
67 if (strcmp(ptr->str, reason) == 0)
68 return ptr->code;
551 struct doveadm_cmd_param *ptr; local
553 array_foreach_modifiable(&pargv, ptr) {
554 if ((ptr->flags & CMD_PARAM_FLAG_POSITIONAL) != 0 &&
555 (ptr
[all...]

Completed in 295 milliseconds

12