namespace WidgetInstall {
void WacSecurity::getCertificateChainList(
- WrtDB::CertificateChainList& list) const
+ WrtDB::CertificateChainList& list,
+ WrtDB::CertificateSource source) const
{
- FOREACH(certIter,mCertificateChainList)
- list.push_back(certIter->toBase64String());
+ 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