summaryrefslogtreecommitdiff
path: root/src/Context/InstallationContext.cpp
diff options
context:
space:
mode:
authorDuyoung Jang <duyoung.jang@samsung.com>2012-10-22 14:34:17 +0900
committerDuyoung Jang <duyoung.jang@samsung.com>2012-10-22 14:34:17 +0900
commit22038b1a60a120c9a00fed87294bd47728f6145f (patch)
tree36108a4aff4f24b31f6ad936aadc7bcebac56e41 /src/Context/InstallationContext.cpp
parent5d858caa26db0267c6ab7d784963429b3eff0338 (diff)
downloadinstaller-22038b1a60a120c9a00fed87294bd47728f6145f.tar.gz
installer-22038b1a60a120c9a00fed87294bd47728f6145f.tar.bz2
installer-22038b1a60a120c9a00fed87294bd47728f6145f.zip
Save cert information
Change-Id: I7babf1f83e85c1dbc4cdacc38e83695226aa51e1
Diffstat (limited to 'src/Context/InstallationContext.cpp')
-rwxr-xr-xsrc/Context/InstallationContext.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/Context/InstallationContext.cpp b/src/Context/InstallationContext.cpp
index 8d0a40b..d0ab876 100755
--- a/src/Context/InstallationContext.cpp
+++ b/src/Context/InstallationContext.cpp
@@ -34,6 +34,7 @@
using namespace Osp::Base;
using namespace Osp::Base::Collection;
using namespace Osp::Io;
+using namespace Osp::Security::Cert;
using namespace Osp::App;
InstallationContext::InstallationContext(void)
@@ -51,6 +52,8 @@ InstallationContext::InstallationContext(void)
,__storage(INSTALLATION_STORAGE_INTERNAL)
,__pPrivilegeList(null)
,__pLiveBoxList(null)
+,__pAuthorCertPath(null)
+,__pDistributorCertPath(null)
,__rootCertType(ROOT_CERTIFICATE_NONE)
,__packageNameType(INSTALLER_PREFIX_TYPE_NONE)
,__pPackageInfoImpl(null)
@@ -65,6 +68,12 @@ InstallationContext::~InstallationContext(void)
delete __pDrmLicense;
__pDrmLicense = null;
+ delete __pAuthorCertPath;
+ __pAuthorCertPath = null;
+
+ delete __pDistributorCertPath;
+ __pDistributorCertPath = null;
+
if (__pPrivilegeList)
{
__pPrivilegeList->RemoveAll();
@@ -415,6 +424,30 @@ InstallationContext::SetLiveBoxList(ArrayList* pLiveBoxList)
__pLiveBoxList = pLiveBoxList;
}
+X509CertificatePath*
+InstallationContext::GetAuthorCertPath(void) const
+{
+ return __pAuthorCertPath;
+}
+
+void
+InstallationContext::SetAuthorCertPath(X509CertificatePath* pAuthorCertPath)
+{
+ __pAuthorCertPath = pAuthorCertPath;
+}
+
+X509CertificatePath*
+InstallationContext::GetDistributorCertPath(void) const
+{
+ return __pDistributorCertPath;
+}
+
+void
+InstallationContext::SetDistributorCertPath(X509CertificatePath* pDistributorCertPath)
+{
+ __pDistributorCertPath = pDistributorCertPath;
+}
+
RootCertificateType
InstallationContext::GetRootCertType(void) const
{