fs-crypt-common.c revision bcb4e51a409d94ae670de96afb8483a4f7855294
6335b1be387359ac461b0c34087bbba98a925a49Phil Carmody/* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */
6335b1be387359ac461b0c34087bbba98a925a49Phil Carmody/* defined outside this file */
6335b1be387359ac461b0c34087bbba98a925a49Phil Carmodyint fs_crypt_load_keys(struct crypt_fs *fs, const char **error_r);
8734467f39c1d36050380f07a408860404d60996Aki Tuomifs_crypt_init(struct fs *_fs, const char *args, const
19b42eb8acd9aa4790476d5c42df304679b33de3Stephan Bosch const char *p, *arg, *value, *error, *parent_name, *parent_args;
6335b1be387359ac461b0c34087bbba98a925a49Phil Carmody const char *public_key_path = "", *private_key_path = "", *password = "";
6335b1be387359ac461b0c34087bbba98a925a49Phil Carmody if (!dcrypt_initialize("openssl", NULL, &error))
b28403dc4da6ee942ff18315596b43d4c4e9b7bdMartti Rannanjärvi /* [algo=<s>:][set_prefix=<n>:][public_key_path=<s>:]
6335b1be387359ac461b0c34087bbba98a925a49Phil Carmody [private_key_path=<s>:[password=<s>:]]<parent fs> */
parent_args++;
int ret;
ret = 0;
return ret;
char *key_data;
error_r) < 0) {
error_r) < 0) {
static struct istream *
const char *error;
flags);
int ret;
if (!success) {
return ret;