blob: c502b62546dc50a0e30a5064a52fad76b65966eb [file] [log] [blame]
Paul Lawrence4e727452015-04-15 14:12:00 -07001#include <stddef.h>
Paul Lawrence707fd6c2015-04-28 22:14:15 +00002#include <sys/cdefs.h>
3
4__BEGIN_DECLS
5
6// General functions
7int e4crypt_enable(const char* path);
8int e4crypt_main(int argc, char* argv[]);
9int e4crypt_change_password(const char* path, int crypt_type,
10 const char* password);
11int e4crypt_crypto_complete(const char* path);
12int e4crypt_check_passwd(const char* path, const char* password);
13int e4crypt_get_password_type(const char* path);
14const char* e4crypt_get_password(const char* path);
Paul Lawrence00f4aad2015-05-06 13:53:43 -070015void e4crypt_clear_password(const char* path);
Paul Lawrence707fd6c2015-04-28 22:14:15 +000016int e4crypt_restart(const char* path);
Paul Lawrence4e727452015-04-15 14:12:00 -070017int e4crypt_get_field(const char* path, const char* fieldname,
18 char* value, size_t len);
19int e4crypt_set_field(const char* path, const char* fieldname,
20 const char* value);
Paul Crowley75a52022015-05-06 15:04:43 +010021int e4crypt_set_user_crypto_policies(const char *path);
22int e4crypt_create_new_user_dir(const char *user_handle, const char *path);
Paul Lawrence707fd6c2015-04-28 22:14:15 +000023
24__END_DECLS