Paul Lawrence | 4e72745 | 2015-04-15 14:12:00 -0700 | [diff] [blame] | 1 | #include <stddef.h> |
Paul Lawrence | 707fd6c | 2015-04-28 22:14:15 +0000 | [diff] [blame] | 2 | #include <sys/cdefs.h> |
| 3 | |
| 4 | __BEGIN_DECLS |
| 5 | |
| 6 | // General functions |
| 7 | int e4crypt_enable(const char* path); |
| 8 | int e4crypt_main(int argc, char* argv[]); |
| 9 | int e4crypt_change_password(const char* path, int crypt_type, |
| 10 | const char* password); |
| 11 | int e4crypt_crypto_complete(const char* path); |
| 12 | int e4crypt_check_passwd(const char* path, const char* password); |
| 13 | int e4crypt_get_password_type(const char* path); |
| 14 | const char* e4crypt_get_password(const char* path); |
Paul Lawrence | 00f4aad | 2015-05-06 13:53:43 -0700 | [diff] [blame] | 15 | void e4crypt_clear_password(const char* path); |
Paul Lawrence | 707fd6c | 2015-04-28 22:14:15 +0000 | [diff] [blame] | 16 | int e4crypt_restart(const char* path); |
Paul Lawrence | 4e72745 | 2015-04-15 14:12:00 -0700 | [diff] [blame] | 17 | int e4crypt_get_field(const char* path, const char* fieldname, |
| 18 | char* value, size_t len); |
| 19 | int e4crypt_set_field(const char* path, const char* fieldname, |
| 20 | const char* value); |
Paul Crowley | 75a5202 | 2015-05-06 15:04:43 +0100 | [diff] [blame] | 21 | int e4crypt_set_user_crypto_policies(const char *path); |
| 22 | int e4crypt_create_new_user_dir(const char *user_handle, const char *path); |
Paul Crowley | eebf445 | 2015-05-19 12:34:09 +0100 | [diff] [blame] | 23 | int e4crypt_delete_user_key(const char *user_handle); |
Paul Lawrence | 707fd6c | 2015-04-28 22:14:15 +0000 | [diff] [blame] | 24 | |
| 25 | __END_DECLS |