mail-crypt-pluginenv.c revision abd2ac9eb17f620557716af62434c4c751d7c819
/* Copyright (c) 2015-2017 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "str.h"
#include "array.h"
#include "settings-parser.h"
#include "master-service.h"
#include "master-service-settings.h"
#include "mail-crypt-common.h"
#include "mail-crypt-key.h"
#include "fs-crypt-settings.h"
static const struct fs_crypt_settings *
fs_crypt_load_settings(void)
{
static const struct setting_parser_info *set_roots[] = {
};
struct master_service_settings_input input;
struct master_service_settings_output output;
const char *error;
return master_service_settings_get_others(master_service)[0];
}
static
const char *name)
{
const char *const *envs;
unsigned int i, count;
return NULL;
return NULL;
for (i = 0; i < count; i += 2) {
return envs[i+1];
}
return NULL;
}
static int
const char *set_prefix,
struct mail_crypt_global_keys *global_keys,
const char **error_r)
{
unsigned int i = 1;
const char *key_data;
global_keys, error_r) < 0)
return -1;
}
return 0;
}
int mail_crypt_global_keys_load_pluginenv(const char *set_prefix,
struct mail_crypt_global_keys *global_keys_r,
const char **error_r)
{
int ret = 0;
global_keys_r, error_r) < 0)
ret = -1;
}
if (ret == 0 &&
error_r) < 0)
ret = -1;
if (ret != 0)
return ret;
}