Ode App: replace internal encryption password api in password popup 32/120032/1
authoryeji01kim <yeji01.kim@samsung.com>
Tue, 21 Mar 2017 07:31:59 +0000 (16:31 +0900)
committeryeji01kim <yeji01.kim@samsung.com>
Tue, 21 Mar 2017 07:31:59 +0000 (16:31 +0900)
Change-Id: Ie85b0220e97fb2fe4a9fdda5ca32241025630748
Signed-off-by: yeji01kim <yeji01.kim@samsung.com>
tools/apps/ode/src/password/password.c

index 9d124c9..578f388 100755 (executable)
@@ -65,6 +65,7 @@ void password_result_callback(popup_data_s *data, const char *result)
 {
        int ret = 0;
        appdata_s *ad = NULL;
+       bool verify_ret = false;
 
        if (!strcmp(result, "fail")) {
                return;
@@ -116,8 +117,8 @@ void password_result_callback(popup_data_s *data, const char *result)
                break;
        /* for temporary start */
        case INTERNAL_ENCRYPT_PASSWORD:
-               ret = ode_internal_encryption_init_password(data->entry_data);
-               if (ret != ODE_ERROR_NONE) {
+               ret = ode_internal_encryption_verify_password(data->entry_data, &verify_ret);
+               if (verify_ret != true) {
                        dlog_print(DLOG_ERROR, LOG_TAG, "failed to create internal data");
                        return;
                }