summaryrefslogtreecommitdiffstats
path: root/src/lib-mail/message-header-hash.h
blob: 633d0c1e86fe9939b07d9f58d7e6ad83116ea2a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef MESSAGE_HEADER_HASH_H
#define MESSAGE_HEADER_HASH_H

#define MESSAGE_HEADER_HASH_MAX_VERSION 4

struct hash_method;

struct message_header_hash_context {
	bool prev_was_questionmark;
};

/* Initialize ctx with zeros. */
void message_header_hash_more(struct message_header_hash_context *ctx,
			      const struct hash_method *method, void *context,
			      unsigned int version,
			      const unsigned char *data, size_t size);

#endif