Fixed certificate of authentication value to base64.
authorSoyoung Kim <sy037.kim@samsung.com>
Fri, 30 Nov 2012 09:49:48 +0000 (18:49 +0900)
committerSoyoung Kim <sy037.kim@samsung.com>
Fri, 30 Nov 2012 12:33:09 +0000 (21:33 +0900)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] modify base64 string instead of sha1 values
at saving certificate of authentication.
[SCMRequest] N/A

src/jobs/widget_install/task_certificates.cpp
src/jobs/widget_install/task_certify.cpp

index 644419e..4e41048 100755 (executable)
@@ -100,10 +100,6 @@ void TaskCertificates::SetCertiInfo(CertificateSource source)
 
         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) {
@@ -150,7 +146,7 @@ void TaskCertificates::SetCertiInfo(CertificateSource source)
             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");
index dbfc7cd..40a17cd 100755 (executable)
@@ -102,10 +102,7 @@ TaskCertify::TaskCertify(InstallerContext &inCont) :
     m_contextData(inCont),
     WidgetInstallPopup(inCont)
 {
-    /* This is temporary comment for certi error
-       After security-server, cert-svc release, should remove comment
     AddStep(&TaskCertify::stepSignature);
-    */
 
     // Block until fixed popup issues
     if (!GlobalSettings::PopupsTestModeEnabled()