Change security registration method 13/178213/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 9 May 2018 00:18:41 +0000 (09:18 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 9 May 2018 00:18:41 +0000 (09:18 +0900)
- Change security registration method to let developer change pkg
  between wgt and hybrid.

Change-Id: I82034b5771c25720e3d038cb1af7df22208a0c9f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/common/security_registration.cc

index e9826c3..bc3e0b8 100644 (file)
@@ -363,9 +363,9 @@ bool RegisterSecurityContextForManifest(
     }
   }
 
-  error = security_manager_app_install(req);
+  error = security_manager_app_update(req);
   if (error != SECURITY_MANAGER_SUCCESS) {
-    LOG(ERROR) << "Failed while calling security_manager_app_install failed "
+    LOG(ERROR) << "Failed while calling security_manager_app_update failed "
                << "(error code: " << error << ")";
     std::string errnum = boost::str(boost::format("%d") % error);
     *error_message = security_manager_strerror(static_cast<lib_retcode>(error));