f8ead0942a9b7c8fcf91414ed1b534d5807ca555Timo Sirainen/* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */
f8ead0942a9b7c8fcf91414ed1b534d5807ca555Timo Sirainen/* FIXME: cache handling could be useful to move to Dovecot core, so that if
f8ead0942a9b7c8fcf91414ed1b534d5807ca555Timo Sirainen we're using this plugin together with zlib plugin there would be just one
f8ead0942a9b7c8fcf91414ed1b534d5807ca555Timo Sirainenconst char *mail_crypt_plugin_version = DOVECOT_ABI_VERSION;
1ed1ad066e4aa313e33dafedb892fb84946cacebTimo Sirainen MODULE_CONTEXT_REQUIRE(obj, mail_crypt_mail_module)
cbe49ba128638e63395aedaa2144087c89835633Timo Sirainen MODULE_CONTEXT_REQUIRE(obj, mail_crypt_storage_module)
sizeof(IOSTREAM_CRYPT_MAGIC)) <= 0) {
return FALSE;
sizeof(IOSTREAM_CRYPT_MAGIC)) != 0) {
return FALSE;
return TRUE;
static struct istream *
return input;
const char **error_r,
void *context)
error_r);
return ret;
&error)) <= 0)
if (ret < 0) {
error));
return ret;
error));
version);