From: Kyungwook Tak Date: Fri, 20 Nov 2015 09:28:14 +0000 (+0900) Subject: Write Validator error description detail X-Git-Tag: accepted/tizen/mobile/20151122.234351~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78b529c44fd7df582ef7219b3d78fbf221285941;p=platform%2Fcore%2Fsecurity%2Fcert-svc.git Write Validator error description detail Change-Id: I274f5984689ca60221d3fb3cf6257d25c5a88227 Signed-off-by: Kyungwook Tak --- diff --git a/vcore/vcore/SignatureValidator.cpp b/vcore/vcore/SignatureValidator.cpp index 5cbda8a..25876c0 100644 --- a/vcore/vcore/SignatureValidator.cpp +++ b/vcore/vcore/SignatureValidator.cpp @@ -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); } }