summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaemin Ryu <jm77.ryu@samsung.com>2019-02-22 14:51:40 +0900
committerJaemin Ryu <jm77.ryu@samsung.com>2019-02-22 14:51:40 +0900
commit90a474045b13e69d9a6249f1d316809ec081ed87 (patch)
treee1088abaaadb5a90708453c4ffaaa3c7f3c4cbd8
parente64f0491052d24bc926f1b7d82b0169ae0cf77d9 (diff)
downloaddpm-auth-accepted/tizen_5.5_unified_wearable_hotfix.tar.gz
dpm-auth-accepted/tizen_5.5_unified_wearable_hotfix.tar.bz2
dpm-auth-accepted/tizen_5.5_unified_wearable_hotfix.zip
All getters of password policy require password privilege. Thus privilege check should be performed in the every method call Change-Id: Ia0fabe1c8c42319105f4b8b16e81c51cbd52bad6 Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
-rw-r--r--api/password.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/api/password.cpp b/api/password.cpp
index b890ab3..011bfbe 100644
--- a/api/password.cpp
+++ b/api/password.cpp
@@ -85,7 +85,7 @@ EXPORT_API int dpm_password_get_quality(void* handle, int *quality)
try {
Status<int> ret { 0 };
- ret = client.methodCall<int>("Password::getQuality");
+ ret = client.methodCallForce<int>("Password::getQuality");
if (ret.get() < 0) {
return -1;
}
@@ -123,7 +123,7 @@ EXPORT_API int dpm_password_get_minimum_length(void* handle, int *value)
try {
Status<int> ret { 0 };
- ret = client.methodCall<int>("Password::getMinimumLength");
+ ret = client.methodCallForce<int>("Password::getMinimumLength");
if (ret.get() < 0) {
return -1;
@@ -162,7 +162,7 @@ EXPORT_API int dpm_password_get_min_complex_chars(void* handle, int *value)
try {
Status<int> ret { 0 };
- ret = client.methodCall<int>("Password::getMinComplexChars");
+ ret = client.methodCallForce<int>("Password::getMinComplexChars");
if (ret.get() < 0) {
return -1;
}
@@ -200,7 +200,7 @@ EXPORT_API int dpm_password_get_maximum_failed_attempts_for_wipe(void* handle, i
try {
Status<int> ret { 0 };
- ret = client.methodCall<int>("Password::getMaximumFailedForWipe");
+ ret = client.methodCallForce<int>("Password::getMaximumFailedForWipe");
if (ret.get() < 0) {
return -1;
}
@@ -238,7 +238,7 @@ EXPORT_API int dpm_password_get_expires(void* handle, int *value)
try {
Status<int> ret { 0 };
- ret = client.methodCall<int>("Password::getExpires");
+ ret = client.methodCallForce<int>("Password::getExpires");
if (ret.get() < 0) {
return -1;
}
@@ -276,7 +276,7 @@ EXPORT_API int dpm_password_get_history(void* handle, int *value)
try {
Status<int> ret { 0 };
- ret = client.methodCall<int>("Password::getHistory");
+ ret = client.methodCallForce<int>("Password::getHistory");
if (ret.get() < 0) {
return -1;
}
@@ -361,7 +361,7 @@ EXPORT_API int dpm_password_get_max_inactivity_time_device_lock(void* handle, in
try {
Status<int> ret { 0 };
- ret = client.methodCall<int>("Password::getMaxInactivityTimeDeviceLock");;
+ ret = client.methodCallForce<int>("Password::getMaxInactivityTimeDeviceLock");;
if (ret.get() < 0) {
return -1;
}
@@ -401,7 +401,7 @@ EXPORT_API int dpm_password_get_ret(void* handle, dpm_password_status_e *status)
try {
Status<int> ret { 0 };
- ret = client.methodCall<int>("Password::getStatus");
+ ret = client.methodCallForce<int>("Password::getStatus");
if (ret.get() < 0) {
return -1;
}
@@ -438,7 +438,7 @@ EXPORT_API int dpm_password_get_pattern(void* handle, char **pattern)
try {
Status<std::string> ret { std::string() };
- ret = client.methodCall<std::string>("Password::getPattern");
+ ret = client.methodCallForce<std::string>("Password::getPattern");
*pattern = ::strdup(ret.get().c_str());
} catch (...) {
return -1;
@@ -472,7 +472,7 @@ EXPORT_API int dpm_password_get_maximum_character_occurrences(void* handle, int
try {
Status<int> ret { 0 };
- ret = client.methodCall<int>("Password::getMaximumCharacterOccurrences");
+ ret = client.methodCallForce<int>("Password::getMaximumCharacterOccurrences");
if (ret.get() < 0) {
return -1;
}
@@ -510,7 +510,7 @@ EXPORT_API int dpm_password_get_maximum_numeric_sequence_length(void* handle, in
try {
Status<int> ret { 0 };
- ret = client.methodCall<int>("Password::getMaximumNumericSequenceLength");
+ ret = client.methodCallForce<int>("Password::getMaximumNumericSequenceLength");
if (ret.get() < 0) {
return -1;
}
@@ -605,7 +605,7 @@ EXPORT_API int dpm_password_get_recovery(void* handle, int *enable)
try {
Status<int> ret { false };
- ret = client.methodCall<int>("Password::getRecovery");
+ ret = client.methodCallForce<int>("Password::getRecovery");
if (ret.get() < 0) {
return -1;
}