ostream-hash.c revision bcb4e51a409d94ae670de96afb8483a4f7855294
e59faf65ce864fe95dc00f5d52b8323cdbd0608aTimo Sirainen/* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */
050975ee630c761ab237fce7b8f84fe189bb02d2Timo Siraineno_stream_hash_sendv(struct ostream_private *stream,
050975ee630c761ab237fce7b8f84fe189bb02d2Timo Sirainen const struct const_iovec *iov, unsigned int iov_count)
050975ee630c761ab237fce7b8f84fe189bb02d2Timo Sirainen struct hash_ostream *hstream = (struct hash_ostream *)stream;
050975ee630c761ab237fce7b8f84fe189bb02d2Timo Sirainen unsigned int i;
64510d2cc23a79d2142030bf5bade44baa490db3Timo Sirainen if ((ret = o_stream_sendv(stream->parent, iov, iov_count)) < 0) {
050975ee630c761ab237fce7b8f84fe189bb02d2Timo Sirainen for (i = 0; i < iov_count && bytes_left > 0; i++) {
050975ee630c761ab237fce7b8f84fe189bb02d2Timo Siraineno_stream_create_hash(struct ostream *output, const struct hash_method *method,