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