/dovecot/src/lib-ntlm/ |
H A D | ntlm.h | 12 #define ntlmssp_buffer_data(message, buffer) \ 13 ntlmssp_buffer_data_i((message), &message->buffer) 16 ntlmssp_buffer_data_i(void *message, struct ntlmssp_buffer *buffer) argument 18 return ((char *) message) + read_le32(&buffer->offset); 21 #define ntlmssp_buffer_length(message, buffer) \ 22 ntlmssp_buffer_length_i(&message->buffer) 25 ntlmssp_buffer_length_i(struct ntlmssp_buffer *buffer) argument 27 return read_le16(&buffer->length); 30 #define ntlmssp_t_str(message, buffer, unicode) \ 31 ntlmssp_t_str_i((message), &(message)->buffer, (unicod [all...] |
H A D | ntlm-encrypt.c | 10 #include "buffer.h" 39 unsigned char buffer[14]; local 42 strncpy((char *)buffer, passwd, sizeof(buffer)); 44 for (i = 0; i < sizeof(buffer); i++) 45 buffer[i] = i_toupper(buffer[i]); 47 deshash(hash, buffer, lm_magic); 48 deshash(hash + 8, buffer + 7, lm_magic); 50 safe_memset(buffer, [all...] |
H A D | ntlm-message.c | 11 #include "buffer.h" 21 const char *ntlmssp_t_str_i(const void *message, struct ntlmssp_buffer *buffer, argument 24 unsigned int len = read_le16(&buffer->length); 25 const char *p = ((const char *) message) + read_le32(&buffer->offset); 61 struct ntlmssp_buffer buffer; local 64 write_le32(&buffer.offset, buf->used); 68 write_le16(&buffer.length, length); 69 write_le16(&buffer.space, length); 70 buffer_write(buf, buffer_offset, &buffer, sizeof(buffer)); 76 struct ntlmssp_buffer buffer; local 176 ntlmssp_check_buffer(const struct ntlmssp_buffer *buffer, size_t data_size, const char **error) argument [all...] |
/dovecot/src/lib/ |
H A D | array-decl.h | 13 buffer_t *buffer; member in struct:array
|
H A D | iostream-rawlog-private.h | 13 buffer_t *buffer; member in struct:rawlog_iostream
|
H A D | buffer.h | 4 struct buffer { struct 11 With dynamic buffers they are valid only as long as buffer is not 13 buffer in any way. */ 15 /* Create a modifiable buffer from given data. Writes past this size will 17 void buffer_create_from_data(buffer_t *buffer, void *data, size_t size); 18 /* Create a non-modifiable buffer from given data. */ 19 void buffer_create_from_const_data(buffer_t *buffer, 29 /* Creates a dynamically growing buffer. Whenever write would exceed the 36 /* Free the memory used by buffer. Not needed if the memory is free'd 39 /* Free the memory used by buffer structur [all...] |
H A D | istream-data.c | 24 stream->buffer = data; 36 i_stream_set_name(&stream->istream, "(buffer)"); 48 void *buffer; local 51 buffer = ""; 53 buffer = i_malloc(size); 54 memcpy(buffer, data, size); 56 stream = i_stream_create_from_data(buffer, size); 59 (stream, i_stream_copied_data_free, buffer);
|
H A D | md4.h | 19 unsigned char buffer[64]; member in struct:md4_context
|
H A D | md5.h | 19 unsigned char buffer[64]; member in struct:md5_context
|
H A D | test-ostream-buffer.c | 4 #include "buffer.h" 14 buffer_t *buffer; local 19 buffer = buffer_create_dynamic(default_pool, 8); 23 output = o_stream_create_buffer(buffer); 44 i_assert(buffer->used <= MAX_BUFSIZE*4); 45 test_assert(memcmp(buf, buffer->data, buffer->used) == 0); 48 buffer_free(&buffer); 55 test_begin("ostream buffer pwrite random"); 67 test_begin("ostream buffer siz [all...] |
H A D | ostream-file-private.h | 18 unsigned char *buffer; /* ring-buffer */ member in struct:file_ostream 22 bool full:1; /* if head == tail, is buffer empty or full? */
|
H A D | istream-private.h | 37 const unsigned char *buffer; member in struct:istream_private 72 /* The stream guarantees that the buffer pointer stays valid when it
|
H A D | test-iostream-pump.c | 6 #include "buffer.h" 58 input size so there's something in internal buffer. */ 143 buffer_t *buffer; local 145 test_iostream_setup(block, &in, &out, &buffer); 148 test_assert(strcmp(run_pump(in, out, &counter, buffer), "hello, world") == 0); 161 buffer_t *buffer; local 163 test_iostream_setup(block, &in_2, &out, &buffer); 167 test_assert(strcmp(run_pump(in, out, &counter, buffer), "") == 0); 180 buffer_t *buffer; local 182 test_iostream_setup(block, &in_2, &out, &buffer); 199 buffer_t *buffer; local 218 buffer_t *buffer; local 237 buffer_t *buffer; local 262 buffer_t *buffer; local [all...] |
H A D | istream-seekable.c | 4 #include "buffer.h" 85 const unsigned char *buffer; local 93 /* copy our currently read buffer to it */ 95 if (write_full(fd, stream->buffer, sstream->buffer_peak) < 0) { 110 /* read back the data we just had in our buffer */ 112 buffer = i_stream_get_data(sstream->fd_input, &size); 129 /* Set the max buffer size only after we've already read everything 131 more data exists in buffer than max_buffer_size. */ 134 stream->buffer = buffer; [all...] |
H A D | array.h | 4 /* Array is a buffer accessible using fixed size elements. As long as the 41 #include "buffer.h" 73 (const char *)(elem = *(array)->v) + (array)->arr.buffer->used; \ 78 buffer_get_modifiable_data((array)->arr.buffer, NULL)) + \ 79 (array)->arr.buffer->used; \ 90 (_foreach_offset < (array)->arr.buffer->used) && \ 99 elem != CONST_PTR_OFFSET(*(array)->v, (array)->arr.buffer->used); \ 103 buffer_get_modifiable_data((array)->arr.buffer, NULL); \ 104 elem != CONST_PTR_OFFSET(*(array)->v, (array)->arr.buffer->used); \ 114 array_create_from_buffer_i(struct array *array, buffer_t *buffer, argument 127 buffer_t *buffer; local 307 buffer_t *buffer = array1->buffer; local [all...] |
H A D | buffer.c | 6 #include "buffer.h" 63 for this buffer. this is mainly for cases where the buffer is 83 /* buffer's size increased: move the buffer's memory elsewhere. 85 be used to access the buffer's memory */ 102 void buffer_create_from_data(buffer_t *buffer, void *data, size_t size) argument 106 i_assert(sizeof(*buffer) >= sizeof(struct real_buffer)); 108 buf = (struct real_buffer *)buffer; 113 buffer i 119 buffer_create_from_const_data(buffer_t *buffer, const void *data, size_t size) argument [all...] |
/dovecot/src/lib-ssl-iostream/ |
H A D | istream-openssl.c | 35 unsigned char buffer[IO_BLOCK_SIZE]; local 87 while ((ret = SSL_read(ssl_io->ssl, buffer, sizeof(buffer))) > 0) { 88 memcpy(i_stream_alloc(stream, ret), buffer, ret); local
|
H A D | ostream-openssl.c | 4 #include "buffer.h" 11 buffer_t *buffer; member in struct:ssl_ostream 29 buffer_free(&sstream->buffer); 39 if (sstream->buffer == NULL) 40 sstream->buffer = buffer_create_dynamic(default_pool, 4096); 51 the buffer */ 52 avail = buffer_get_writable_size(sstream->buffer) - sstream->buffer->used; 54 avail = sstream->ostream.max_buffer_size > sstream->buffer->used ? 55 sstream->ostream.max_buffer_size - sstream->buffer [all...] |
/dovecot/src/lib-mail/ |
H A D | message-part-serialize.c | 4 #include "buffer.h" 108 void *buffer, size_t buffer_size) 115 memcpy(buffer, ctx->data, buffer_size); 107 read_next(struct deserialize_context *ctx, void *buffer, size_t buffer_size) argument
|
/dovecot/src/lib-dict-backend/ |
H A D | dict-cdb.c | 4 #include "buffer.h" 28 buffer_t *buffer; member in struct:cdb_dict_iterate_context 141 ctx->buffer = buffer_create_dynamic(default_pool, 256); 163 buffer_set_used_size(ctx->buffer, 0); 166 data = buffer_append_space_unsafe(ctx->buffer, datalen + 1); 219 data = buffer_append_space_unsafe(ctx->buffer, datalen + 1); 244 buffer_free(&ctx->buffer);
|
/dovecot/src/lib-index/ |
H A D | mail-transaction-log-private.h | 4 #include "buffer.h" 43 buffer_t *buffer; member in struct:mail_transaction_log_file
|
H A D | mail-index-fsck.c | 126 keyword_name_is_valid(const char *buffer, unsigned int pos, unsigned int size) argument 129 if (buffer[pos] == '\0') 131 if (((unsigned char)buffer[pos] & 0x7f) < 32) { 304 /* name may change if header buffer is changed */
|
/dovecot/src/pop3-login/ |
H A D | client.c | 5 #include "buffer.h" 191 unsigned char buffer[16]; local 192 unsigned char buffer_base64[MAX_BASE64_ENCODED_SIZE(sizeof(buffer)) + 1]; 203 random_fill(buffer, sizeof(buffer)); 205 base64_encode(buffer, sizeof(buffer), &buf);
|
/dovecot/src/lib-smtp/ |
H A D | smtp-params.c | 459 smtp_params_mail_write_auth(string_t *buffer, argument 477 str_append(buffer, "AUTH="); 478 smtp_xtext_encode(buffer, str_data(auth_addr), str_len(auth_addr)); 479 str_append_c(buffer, ' '); 483 smtp_params_mail_write_body(string_t *buffer, argument 493 str_append(buffer, "BODY=7BIT "); 498 str_append(buffer, "BODY=8BITMIME "); 504 str_append(buffer, "BODY=BINARYMIME "); 507 str_append(buffer, "BODY="); 508 str_append(buffer, param 517 smtp_params_mail_write_envid(string_t *buffer, enum smtp_capability caps, const struct smtp_params_mail *params) argument 537 smtp_params_mail_write_ret(string_t *buffer, enum smtp_capability caps, const struct smtp_params_mail *params) argument 559 smtp_params_mail_write_size(string_t *buffer, enum smtp_capability caps, const struct smtp_params_mail *params) argument 574 smtp_params_mail_write(string_t *buffer, enum smtp_capability caps, const struct smtp_params_mail *params) argument 923 smtp_params_rcpt_write_notify(string_t *buffer, enum smtp_capability caps, const struct smtp_params_rcpt *params) argument 964 smtp_params_rcpt_write_orcpt(string_t *buffer, enum smtp_capability caps, const struct smtp_params_rcpt *params) argument 986 smtp_params_rcpt_write(string_t *buffer, enum smtp_capability caps, const struct smtp_params_rcpt *params) argument [all...] |
/dovecot/src/auth/ |
H A D | mech-rpa.c | 16 #include "buffer.h" 218 const unsigned char *end, unsigned char **buffer) 230 *buffer = p_malloc(pool, len); 231 memcpy(*buffer, p, len); 217 rpa_read_buffer(pool_t pool, const unsigned char **data, const unsigned char *end, unsigned char **buffer) argument
|