bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */
2e5d4199ae0f51de146480d13780530c7dd9e3e4Timo Siraineno_stream_hash_sendv(struct ostream_private *stream,
2e5d4199ae0f51de146480d13780530c7dd9e3e4Timo Sirainen const struct const_iovec *iov, unsigned int iov_count)
2e5d4199ae0f51de146480d13780530c7dd9e3e4Timo Sirainen struct hash_ostream *hstream = (struct hash_ostream *)stream;
2e5d4199ae0f51de146480d13780530c7dd9e3e4Timo Sirainen unsigned int i;
2e5d4199ae0f51de146480d13780530c7dd9e3e4Timo Sirainen if ((ret = o_stream_sendv(stream->parent, iov, iov_count)) < 0) {
2e5d4199ae0f51de146480d13780530c7dd9e3e4Timo Sirainen for (i = 0; i < iov_count && bytes_left > 0; i++) {
2e5d4199ae0f51de146480d13780530c7dd9e3e4Timo Siraineno_stream_create_hash(struct ostream *output, const struct hash_method *method,