summaryrefslogtreecommitdiffstats
path: root/cryptfs_hw.h
diff options
context:
space:
mode:
authorDinesh K Garg <dineshg@codeaurora.org>2014-02-27 21:56:58 (GMT)
committerZhao Wei Liew <zhaoweiliew@gmail.com>2017-02-12 12:41:17 (GMT)
commitcba11e0f9fd333594c463111998a5d466bd39519 (patch)
treea4388817e6f4a5c751b6b185625349fe14ba6b39 /cryptfs_hw.h
parenta0624c1c576eea574092362885cb4ba41b0ea58d (diff)
downloadandroid_vendor_qcom_opensource_cryptfs_hw-cba11e0f9fd333594c463111998a5d466bd39519.zip
android_vendor_qcom_opensource_cryptfs_hw-cba11e0f9fd333594c463111998a5d466bd39519.tar.gz
android_vendor_qcom_opensource_cryptfs_hw-cba11e0f9fd333594c463111998a5d466bd39519.tar.bz2
Wrong function pointer usage
qseecom_create_key which is a function pointer is used after dereferencing it. Also fixed the issue where userdata may not be wiped after certain number of attemps. Change-Id: I4d14366e33c09da64f89000a16b7eef7d981cfda
Diffstat (limited to 'cryptfs_hw.h')
-rw-r--r--cryptfs_hw.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cryptfs_hw.h b/cryptfs_hw.h
index 7732bff..9d3573b 100644
--- a/cryptfs_hw.h
+++ b/cryptfs_hw.h
@@ -33,9 +33,9 @@
extern "C" {
#endif
-int set_hw_device_encryption_key(const char*, const char*);
-int update_hw_device_encryption_key(const char*, const char*);
-int is_hw_disk_encryption(const char*);
+unsigned int set_hw_device_encryption_key(const char*, const char*);
+unsigned int update_hw_device_encryption_key(const char*, const char*);
+unsigned int is_hw_disk_encryption(const char*);
#ifdef __cplusplus
}