view src/lib/istream-hash.h @ 22656:1789bf2a1e01

director: Make sure HOST-RESET-USERS isn't used with max_moving_users=0 The reset command would just hang in that case. doveadm would never have sent this, so this is just an extra sanity check.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sun, 05 Nov 2017 23:51:56 +0200
parents f73c388ad360
children
line wrap: on
line source

#ifndef ISTREAM_HASH_H
#define ISTREAM_HASH_H

struct hash_method;

/* hash_context must be allocated and initialized by caller. This istream will
   simply call method->loop() for all the data going through the istream. */
struct istream *
i_stream_create_hash(struct istream *input, const struct hash_method *method,
		     void *hash_context);

#endif