SET(CMAKE_SKIP_RPATH "TRUE")
IF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
-ADD_DEFINITIONS("-DTIZEN_DEBUG_ENABLE")
ADD_DEFINITIONS("-DBUILD_TYPE_DEBUG")
ADD_DEFINITIONS("-DDPL_LOGS_ENABLED")
ENDIF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
} \
} while (0)
-#define LogError(message) DPL_MACRO_FOR_LOGGING(message, VcoreDPL::Log::AbstractLogProvider::LogLevel::Error)
#ifdef BUILD_TYPE_DEBUG
#define LogDebug(message) DPL_MACRO_FOR_LOGGING(message, VcoreDPL::Log::AbstractLogProvider::LogLevel::Debug)
- #define LogInfo(message) DPL_MACRO_FOR_LOGGING(message, VcoreDPL::Log::AbstractLogProvider::LogLevel::Info)
- #define LogWarning(message) DPL_MACRO_FOR_LOGGING(message, VcoreDPL::Log::AbstractLogProvider::LogLevel::Warning)
#define LogPedantic(message) DPL_MACRO_FOR_LOGGING(message, VcoreDPL::Log::AbstractLogProvider::LogLevel::Pedantic)
#else
#define LogDebug(message) DPL_MACRO_DUMMY_LOGGING(message, VcoreDPL::Log::AbstractLogProvider::LogLevel::Debug)
- #define LogInfo(message) DPL_MACRO_DUMMY_LOGGING(message, VcoreDPL::Log::AbstractLogProvider::LogLevel::Info)
- #define LogWarning(message) DPL_MACRO_DUMMY_LOGGING(message, VcoreDPL::Log::AbstractLogProvider::LogLevel::Warning)
#define LogPedantic(message) DPL_MACRO_DUMMY_LOGGING(message, VcoreDPL::Log::AbstractLogProvider::LogLevel::Pedantic)
#endif // BUILD_TYPE_DEBUG
+#define LogInfo(message) DPL_MACRO_FOR_LOGGING(message, VcoreDPL::Log::AbstractLogProvider::LogLevel::Info)
+#define LogWarning(message) DPL_MACRO_FOR_LOGGING(message, VcoreDPL::Log::AbstractLogProvider::LogLevel::Warning)
+#define LogError(message) DPL_MACRO_FOR_LOGGING(message, VcoreDPL::Log::AbstractLogProvider::LogLevel::Error)
+
#endif // DPL_LOG_H
}
}
- if (checkOcsp && Ocsp::check(outData) == Ocsp::Result::REVOKED)
+ if (checkOcsp && Ocsp::check(outData) == Ocsp::Result::REVOKED) {
+ LogError("Certificate is Revoked by OCSP server.");
return SIGNATURE_REVOKED;
+ }
+
+ LogDebug("Signature validation check done successfully ");
} catch (const CertificateCollection::Exception::Base &e) {
LogError("CertificateCollection exception : " << e.DumpToString());
LogError("XmlSec exception : " << e.DumpToString());
return SIGNATURE_INVALID;
} catch (const Ocsp::Exception::Base &e) {
- LogError("Ocsp exception : " << e.DumpToString());
+ LogInfo("OCSP will be handled by cert-checker later. : " << e.DumpToString());
/*
* Don't care ocsp exception here.
* just return signature disregard or verified
}
}
- if (checkOcsp && Ocsp::check(outData) == Ocsp::Result::REVOKED)
+ if (checkOcsp && Ocsp::check(outData) == Ocsp::Result::REVOKED) {
+ LogError("Certificate is Revoked by OCSP server.");
return SIGNATURE_REVOKED;
+ }
+
+ LogDebug("Signature validation of check list done successfully ");
} catch (const CertificateCollection::Exception::Base &e) {
LogError("CertificateCollection exception : " << e.DumpToString());
LogError("XmlSec exception : " << e.DumpToString());
return SIGNATURE_INVALID;
} catch (const Ocsp::Exception::Base &e) {
- LogError("Ocsp exception : " << e.DumpToString());
+ LogInfo("OCSP will be handled by cert-checker later. : " << e.DumpToString());
/*
* Don't care ocsp exception here.
* just return signature disregard or verified