Write Validator error description detail 67/52267/2
authorKyungwook Tak <k.tak@samsung.com>
Fri, 20 Nov 2015 09:28:14 +0000 (18:28 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Fri, 20 Nov 2015 09:35:19 +0000 (18:35 +0900)
Change-Id: I274f5984689ca60221d3fb3cf6257d25c5a88227
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
vcore/vcore/SignatureValidator.cpp

index 5cbda8a..25876c0 100644 (file)
@@ -501,18 +501,18 @@ VCerr SignatureValidator::Impl::makeChainBySignature(
 std::string SignatureValidator::Impl::errorToString(VCerr code)
 {
        switch (code) {
-       case E_SIG_NONE:           return "E_SIG_NONE";
-       case E_SIG_INVALID_FORMAT: return "E_SIG_INVALID_FORMAT";
-       case E_SIG_INVALID_CERT:   return "E_SIG_INVALID_CERT";
-       case E_SIG_INVALID_CHAIN:  return "E_SIG_INVALID_CHAIN";
-       case E_SIG_INVALID_REF:    return "E_SIG_INVALID_REF";
-       case E_SIG_CERT_EXPIRED:   return "E_SIG_CERT_EXPIRED";
-       case E_SIG_CERT_NOT_YET:   return "E_SIG_CERT_NOT_YET";
-       case E_SIG_DISREGARDED:    return "E_SIG_DISREGARDED";
-       case E_SIG_REVOKED:        return "E_SIG_REVOKED";
-       case E_SIG_PLUGIN:         return "E_SIG_PLUGIN";
-       case E_SIG_OUT_OF_MEM:     return "E_SIG_OUT_OF_MEM";
-       case E_SIG_UNKNOWN:        return "E_SIG_UNKNOWN";
+       case E_SIG_NONE:           return "Success.";
+       case E_SIG_INVALID_FORMAT: return "Invalid format of signature file.";
+       case E_SIG_INVALID_CERT:   return "Invalid format of certificate in signature.";
+       case E_SIG_INVALID_CHAIN:  return "Invalid certificate chain with certificate in signature.";
+       case E_SIG_INVALID_REF:    return "Invalid object reference in signature. Files in app should not be changed after app packaged.";
+       case E_SIG_CERT_EXPIRED:   return "Certificate in signature is expired.";
+       case E_SIG_CERT_NOT_YET:   return "Certificate in signature is not valid yet.";
+       case E_SIG_DISREGARDED:    return "Signature validation can be disregarded in some cases.";
+       case E_SIG_REVOKED:        return "One of certificate is revoked in certificate chain.";
+       case E_SIG_PLUGIN:         return "Failed to load plugin for additional validation check.";
+       case E_SIG_OUT_OF_MEM:     return "Out of memory.";
+       case E_SIG_UNKNOWN:        return "Unknown error.";
        default:                   return m_pluginHandler.errorToString(code);
        }
 }