dovecot-2.2: Added a test for istream-attachment-extractor hash ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Aug 22 11:44:51 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/edcdab7cccfd
changeset: 14946:edcdab7cccfd
user: Timo Sirainen <tss at iki.fi>
date: Wed Aug 22 11:44:46 2012 +0300
description:
Added a test for istream-attachment-extractor hash size
diffstat:
src/lib-mail/test-istream-attachment.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r ab486673638c -r edcdab7cccfd src/lib-mail/test-istream-attachment.c
--- a/src/lib-mail/test-istream-attachment.c Wed Aug 22 11:43:15 2012 +0300
+++ b/src/lib-mail/test-istream-attachment.c Wed Aug 22 11:44:46 2012 +0300
@@ -97,6 +97,7 @@
a->start_offset = info->start_offset;
a->encoded_size = info->encoded_size;
a->base64_blocks_per_line = info->base64_blocks_per_line;
+ test_assert(strlen(info->hash) == 160/8*2); /* sha1 size */
*output_r = o_stream_create_buffer(attachment_data);
if (o_stream_seek(*output_r, a->buffer_offset) < 0)
More information about the dovecot-cvs
mailing list