diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/plugins/mail-crypt/mail-crypt-plugin.h | |
parent | Initial commit. (diff) | |
download | dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.tar.xz dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/plugins/mail-crypt/mail-crypt-plugin.h')
-rw-r--r-- | src/plugins/mail-crypt/mail-crypt-plugin.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/plugins/mail-crypt/mail-crypt-plugin.h b/src/plugins/mail-crypt/mail-crypt-plugin.h new file mode 100644 index 0000000..4556a92 --- /dev/null +++ b/src/plugins/mail-crypt/mail-crypt-plugin.h @@ -0,0 +1,32 @@ +#ifndef MAIL_CRYPT_PLUGIN_H +#define MAIL_CRYPT_PLUGIN_H + +struct mailbox; +struct module; + +struct mail_crypt_cache { + struct timeout *to; + struct mailbox *box; + uint32_t uid; + + struct istream *input; +}; + +struct mail_crypt_user { + union mail_user_module_context module_ctx; + + struct mail_crypt_global_keys global_keys; + struct mail_crypt_cache cache; + struct mail_crypt_key_cache_entry *key_cache; + const char *curve; + int save_version; +}; + +void mail_crypt_plugin_init(struct module *module); +void mail_crypt_plugin_deinit(void); + +#define MAIL_CRYPT_MAIL_CACHE_EXPIRE_MSECS (60*1000) + +struct mail_crypt_user *mail_crypt_get_mail_crypt_user(struct mail_user *user); + +#endif |