cryptfs_hw: Update module as per vold project

Update cryptfs_hw API signatures as per the vold project
requests to avoid compilation errors.

Change-Id: I1c2133f3cee395892e7fa160afc6314059ba0bcb
This commit is contained in:
Dinesh K Garg 2015-08-20 17:18:48 -07:00
parent 662bd317c2
commit 33e4dcc1d4
2 changed files with 3 additions and 6 deletions

View File

@ -221,12 +221,9 @@ int is_ice_enabled(void)
return storage_type;
}
int wipe_hw_device_encryption_key(const char* enc_mode)
int clear_hw_device_encryption_key()
{
if (!enc_mode)
return -1;
if (is_hw_disk_encryption(enc_mode) && load_qseecom_library())
if (load_qseecom_library())
return qseecom_wipe_key(map_usage(QSEECOM_DISK_ENCRYPTION));
return 0;

View File

@ -35,7 +35,7 @@ extern "C" {
int set_hw_device_encryption_key(const char*, const char*);
int update_hw_device_encryption_key(const char*, const char*, const char*);
int wipe_hw_device_encryption_key(const char*);
int clear_hw_device_encryption_key();
unsigned int is_hw_disk_encryption(const char*);
int is_ice_enabled(void);