if ((pkgmgr_installer_save_certinfo(
const_cast<char*>(DPL::ToUTF8String(
- m_context.widgetConfig.pkgname_NOTNULL).c_str()),
+ m_context.widgetConfig.tzAppid).c_str()),
m_pkgHandle)) < 0) {
LogError("pkgmgrInstallerSaveCertinfo fail");
ThrowMsg(Exceptions::SetCertificateInfoFailed,
FOREACH(certIt, list)
{
- ValidationCore::Crypto::Hash::SHA1 sha1;
- sha1.Append((*certIt)->getDER());
- sha1.Finish();
- std::string sha1String = sha1.ToBase64String();
pkgmgr_instcert_type instCertType;
if (source == SIGNATURE_DISTRIBUTOR) {
if((pkgmgr_installer_set_cert_value(
m_pkgHandle,
instCertType,
- const_cast<char*>(sha1String.c_str()))) < 0) {
+ const_cast<char*>(((*certIt)->getBase64()).c_str()))) < 0) {
LogError("pkgmgrInstallerSetCertValue fail");
ThrowMsg(Exceptions::SetCertificateInfoFailed,
"Failed to Set CertValue");
{
if ((pkgmgr_installer_delete_certinfo(
const_cast<char*>(DPL::ToUTF8String(
- m_context.widgetConfig.pkgname_NOTNULL).c_str()))) < 0) {
+ m_context.widgetConfig.tzAppid).c_str()))) < 0) {
LogError("pkgmgr_installer_delete_certinfo fail");
}
}