2015-04-15 23:12:00 +02:00
|
|
|
#include <stddef.h>
|
2015-04-29 00:14:15 +02:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
// General functions
|
|
|
|
int e4crypt_enable(const char* path);
|
|
|
|
int e4crypt_main(int argc, char* argv[]);
|
|
|
|
int e4crypt_change_password(const char* path, int crypt_type,
|
|
|
|
const char* password);
|
|
|
|
int e4crypt_crypto_complete(const char* path);
|
|
|
|
int e4crypt_check_passwd(const char* path, const char* password);
|
|
|
|
int e4crypt_get_password_type(const char* path);
|
|
|
|
const char* e4crypt_get_password(const char* path);
|
2015-05-06 22:53:43 +02:00
|
|
|
void e4crypt_clear_password(const char* path);
|
2015-04-29 00:14:15 +02:00
|
|
|
int e4crypt_restart(const char* path);
|
2015-04-15 23:12:00 +02:00
|
|
|
int e4crypt_get_field(const char* path, const char* fieldname,
|
|
|
|
char* value, size_t len);
|
|
|
|
int e4crypt_set_field(const char* path, const char* fieldname,
|
|
|
|
const char* value);
|
2015-05-06 16:04:43 +02:00
|
|
|
int e4crypt_set_user_crypto_policies(const char *path);
|
|
|
|
int e4crypt_create_new_user_dir(const char *user_handle, const char *path);
|
2015-04-29 00:14:15 +02:00
|
|
|
|
|
|
|
__END_DECLS
|