OSDN Git Service

f56435610159be740da06a504075196a71c7a7c5
[android-x86/system-extras.git] / ext4_utils / ext4_crypt_init_extensions.h
1 #include <sys/cdefs.h>
2 #include <stdbool.h>
3 #include <cutils/multiuser.h>
4
5 __BEGIN_DECLS
6
7 // These functions assume they are being called from init
8 // They will not operate properly outside of init
9 int e4crypt_install_keyring();
10 int e4crypt_create_device_key(const char* path,
11                               int ensure_dir_exists(const char* dir));
12 int e4crypt_set_directory_policy(const char* path);
13 int e4crypt_do_init_user0();
14 int do_policy_set(const char *directory, const char *policy, int policy_length);
15
16 static const char* e4crypt_unencrypted_folder = "/unencrypted";
17 static const char* e4crypt_key_ref = "/unencrypted/ref";
18
19 __END_DECLS