ostream-hash.c revision a8c5a86d183db25a57bf193c06b41e092ec2e151
/* Copyright (c) 2013-2014 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "hash-method.h"
#include "ostream-private.h"
#include "ostream-hash.h"
struct hash_ostream {
struct ostream_private ostream;
const struct hash_method *method;
void *hash_context;
};
static ssize_t
{
unsigned int i;
return -1;
}
if (ret > 0) {
bytes_left = ret;
for (i = 0; i < iov_count && bytes_left > 0; i++) {
bytes_left -= block_len;
}
}
return ret;
}
struct ostream *
void *hash_context)
{
struct hash_ostream *hstream;
}