remove drm code
authorSoyoung Kim <sy037.kim@samsung.com>
Mon, 24 Jun 2013 06:51:55 +0000 (15:51 +0900)
committerSoyoung Kim <sy037.kim@samsung.com>
Mon, 24 Jun 2013 06:51:55 +0000 (15:51 +0900)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] remove drm code
[SCMRequest] N/A

src/jobs/widget_install/widget_unzip.cpp

index 56d1dff..1b86657 100644 (file)
@@ -185,24 +185,7 @@ void WidgetUnzip::unzipProgress(const std::string &destination)
 std::string WidgetUnzip::decryptDrmPackage(const std::string &source)
 {
     LogInfo("Check DRM...");
-    if (1 == drm_oem_sapps_is_drm_file(source.c_str(), source.length())) {
-        std::string decryptedFile;
-        size_t found = source.find_last_of(".wgt");
-        if (found == std::string::npos) {
-            decryptedFile += source + "_tmp.wgt";
-        } else {
-            decryptedFile += source.substr(0, source.find_last_not_of(".wgt") +
-                    1) + "_tmp.wgt";
-        }
-
-        LogDebug("decrypted file name : " << decryptedFile);
-        if (1 != drm_oem_sapps_decrypt_package(source.c_str(), source.length(),
-                    decryptedFile.c_str(), decryptedFile.length())) {
-            LogError("Failed decrypt drm file");
-            ThrowMsg(Exceptions::DrmDecryptFailed, source);
-        }
-        return decryptedFile;
-    }
+    // TODO : check drm
     return source;
 }