diff options
author | Sangyoon Jang <jeremy.jang@samsung.com> | 2017-07-25 19:21:41 +0900 |
---|---|---|
committer | Sangyoon Jang <jeremy.jang@samsung.com> | 2017-07-26 02:34:12 +0000 |
commit | a85eb1b257bd23da68f48c64819c93df7c36cee8 (patch) | |
tree | 1cfd0190cbf4d2101951583896480c5b10db875d | |
parent | 31d49e53dd11633fadc0a0fb2817e7454acd27c9 (diff) | |
download | app-installers-a85eb1b257bd23da68f48c64819c93df7c36cee8.tar.gz app-installers-a85eb1b257bd23da68f48c64819c93df7c36cee8.tar.bz2 app-installers-a85eb1b257bd23da68f48c64819c93df7c36cee8.zip |
Store dist2 cert info when E_SIG_REGARDED returned
Change-Id: I41a5f7eedb993234cbaee662e0e44b4ad7fd3cdc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
-rw-r--r-- | src/common/certificate_validation.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/certificate_validation.cc b/src/common/certificate_validation.cc index 279f9d0c..8536ae72 100644 --- a/src/common/certificate_validation.cc +++ b/src/common/certificate_validation.cc @@ -157,7 +157,12 @@ bool ValidateSignatureFile( LOG(ERROR) << "Certificate is revoked"; return false; case ValidationCore::E_SIG_DISREGARDED: - LOG(WARNING) << "Signature disregarded: " << file_info.getFileName(); + LOG(INFO) << "Signature disregarded: " << file_info.getFileName(); + // in this case, signature2.xml is signed with non-Tizen certificate + if (file_info.getFileNumber() == 2) { + if (!SetDistributor2Certificate(data, cert_info)) + return false; + } break; case ValidationCore::E_SIG_NONE: if (data.isAuthorSignature()) { |