blob: d02d181d59459b86dcae18d00c088dd6a8cfb5f8 [file] [log] [blame]
Paul Lawrencebc2eb8c2015-04-28 22:13:04 +00001#include <sys/cdefs.h>
2#include <stdbool.h>
3
4__BEGIN_DECLS
5
6// These functions assume they are being called from init
7// They will not operate properly outside of init
8int e4crypt_install_keyring();
9int e4crypt_create_device_key(const char* path,
10 int ensure_dir_exists(const char* dir));
11int e4crypt_set_directory_policy(const char* path);
12bool e4crypt_non_default_key(const char* path);
Paul Lawrencedb1d49c2015-04-10 07:47:30 -070013int do_policy_set(const char *directory, const char *policy, int policy_length);
Paul Crowley45f1a1f2015-05-28 16:45:52 +010014int e4crypt_set_user_crypto_policies(const char* path);
Paul Lawrencebc2eb8c2015-04-28 22:13:04 +000015
16__END_DECLS