view src/lib-dcrypt/dcrypt-iostream.h @ 22310:a28f5bfb15fc

fts: Do not attempt to deinitialize backend if it's not set If FTS backend initialization fails or does not happen, flist->backend might end up being NULL, and attempt to deinitialize NULL won't end well.
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Wed, 17 May 2017 12:26:42 +0300
parents 9a2ac2a69648
children
line wrap: on
line source

#ifndef DCRYPT_IOSTREAM_H
#define DCRYPT_IOSTREAM_H 1

static const unsigned char IOSTREAM_CRYPT_MAGIC[] = {'C','R','Y','P','T','E','D','\x03','\x07'};
#define IOSTREAM_CRYPT_VERSION 2
#define IOSTREAM_TAG_SIZE 16

enum io_stream_encrypt_flags {
	IO_STREAM_ENC_INTEGRITY_HMAC = 0x1,
	IO_STREAM_ENC_INTEGRITY_AEAD = 0x2,
	IO_STREAM_ENC_INTEGRITY_NONE = 0x4,
	IO_STREAM_ENC_VERSION_1      = 0x8,
};

#endif