Remove unused source
[framework/web/wrt-installer.git] / src / jobs / widget_install / wac_security.cpp
index b8ce123..4f81120 100644 (file)
@@ -29,9 +29,22 @@ namespace WidgetInstall {
 void WacSecurity::getCertificateChainList(
         WrtDB::CertificateChainList& list) const
 {
-    FOREACH(certIter,mCertificateChainList)
+    FOREACH(certIter, mCertificateChainList)
         list.push_back(certIter->toBase64String());
 }
 
+void WacSecurity::getCertificateChainList(
+        WrtDB::CertificateChainList& list,
+        WrtDB::CertificateSource source) const
+{
+    if (source == WrtDB::CertificateSource::SIGNATURE_DISTRIBUTOR){
+        FOREACH(certIter, mCertificateChainList)
+            list.push_back(certIter->toBase64String());
+    } else {
+        FOREACH(certIter, mAuthorsCertificateChainList)
+            list.push_back(certIter->toBase64String());
+    }
+}
+
 } // namespace WidgetInstall
 } // namespace Jobs