char* pErrorMsg = null;
int (*drm_oem_sapps_is_drm_file)(const char* pDcfPath, int dcfPathLen);
+ std::unique_ptr<char[]> pFilePath(_StringConverter::CopyToCharArrayN(path));
+ TryReturn(pFilePath, false, "pFilePath is null.");
+
pHandle = dlopen("/usr/lib/libdrm-service-core-sapps.so.0", RTLD_LAZY | RTLD_GLOBAL);
if (!pHandle)
{
return false;
}
- std::unique_ptr<char[]> pFilePath(_StringConverter::CopyToCharArrayN(path));
- TryReturn(pFilePath, false, "pFilePath is null.");
-
AppLog("[drm] drm_oem_sapps_is_drm_file(%s, %d)", pFilePath.get(), strlen(pFilePath.get()));
ret = drm_oem_sapps_is_drm_file(pFilePath.get(), strlen(pFilePath.get()));
AppLog("[drm] drm_oem_sapps_is_drm_file(), result = [%d]", ret);
char* pErrorMsg = null;
int (*drm_oem_sapps_decrypt_package)(const char* pDcfPath, int dcfPathLen, const char* pDecryptedFile, int decryptedFileLen);
+ std::unique_ptr<char[]> pFilePath(_StringConverter::CopyToCharArrayN(path));
+ TryReturn(pFilePath, false, "pFilePath is null.");
+
+ std::unique_ptr<char[]> pDecryptedPath(_StringConverter::CopyToCharArrayN(decryptedPath));
+ TryReturn(pDecryptedPath, false, "pDecryptedPath is null.");
+
pHandle = dlopen("/usr/lib/libdrm-service-core-sapps.so.0", RTLD_LAZY | RTLD_GLOBAL);
if (!pHandle)
{
return false;
}
- std::unique_ptr<char[]> pFilePath(_StringConverter::CopyToCharArrayN(path));
- TryReturn(pFilePath, false, "pFilePath is null.");
-
- std::unique_ptr<char[]> pDecryptedPath(_StringConverter::CopyToCharArrayN(decryptedPath));
- TryReturn(pDecryptedPath, false, "pDecryptedPath is null.");
-
AppLog("[drm] drm_oem_sapps_decrypt_package(%s, %d, %s, %d)", pFilePath.get(), strlen(pFilePath.get()), pDecryptedPath.get(), strlen(pDecryptedPath.get()));
ret = drm_oem_sapps_decrypt_package(pFilePath.get(), strlen(pFilePath.get()), pDecryptedPath.get(), strlen(pDecryptedPath.get()));
AppLog("[drm] drm_oem_sapps_decrypt_package(), result = [%d]", ret);