Reference validator removed for TIZEN apps.
authorsunggun.jung <sunggun.jung@samsung.com>
Fri, 29 Mar 2013 11:41:26 +0000 (20:41 +0900)
committersunggun.jung <sunggun.jung@samsung.com>
Fri, 29 Mar 2013 11:41:26 +0000 (20:41 +0900)
Signed-off-by: sunggun.jung <sunggun.jung@samsung.com>
Change-Id: If71d0d261d991478cec471fc50af203aa4050604

vcore/src/vcore/CertStoreType.h
vcore/src/vcore/SignatureValidator.cpp

index c3af27dda57bad1123175ca26b32df484279af37..dc76afd427f021c766e6e9a558bd27a1aff627d9 100644 (file)
@@ -49,6 +49,8 @@ const Type VIS_PARTNER = 1 << 7;
 const Type VIS_PARTNER_OPERATOR = 1 << 8;
 // RootCA's visibility level : partner-manufacturer
 const Type VIS_PARTNER_MANUFACTURER = 1 << 9;
+// RootCA's visibility level : platform
+const Type VIS_PLATFORM = 1 << 10;
 
 class Set
 {
index 650b48d3c454f12d2403cf40caf2ef48de62696a..bc819d5d34ca667271fb9b419a8bd1974f26ad24 100644 (file)
@@ -188,6 +188,8 @@ SignatureValidator::Result ImplTizenSignatureValidator::check(
         << storeIdSet.contains(CertStoreId::VIS_PARTNER_OPERATOR));
     LogDebug(" visibility level is partner-manufacturer :  "
         << storeIdSet.contains(CertStoreId::VIS_PARTNER_MANUFACTURER));
+       LogDebug(" visibility level is platform :  "
+               << storeIdSet.contains(CertStoreId::VIS_PLATFORM));
 
 /*
     // WAC chapter 3.2.1 - verified definition
@@ -247,11 +249,13 @@ SignatureValidator::Result ImplTizenSignatureValidator::check(
         return SignatureValidator::SIGNATURE_INVALID;
     }
 
+       /*
     ReferenceValidator fileValidator(widgetContentPath);
     if (ReferenceValidator::NO_ERROR != fileValidator.checkReferences(data)) {
         LogWarning("Invalid package - file references broken");
         return SignatureValidator::SIGNATURE_INVALID;
     }
+       */
 
     // It is good time to do OCSP check
     // ocspCheck will throw an exception on any error.
@@ -370,6 +374,8 @@ SignatureValidator::Result ImplWacSignatureValidator::check(
         << storeIdSet.contains(CertStoreId::VIS_PARTNER_OPERATOR));
     LogDebug(" visibility level is partner-manufacturer :  "
         << storeIdSet.contains(CertStoreId::VIS_PARTNER_MANUFACTURER));
+       LogDebug(" visibility level is platform :  "
+               << storeIdSet.contains(CertStoreId::VIS_PLATFORM));
 
     // WAC chapter 3.2.1 - verified definition
     if (data.isAuthorSignature()) {