-DCERT_SVC_RO_PATH=%CERT_SVC_RO_PATH \
-DCERT_SVC_DB=%CERT_SVC_DB \
-DCERT_SVC_PKCS12=%CERT_SVC_PKCS12 \
- -DPROFILE_TARGET=%{?profile} \
+%if "%{?profile}" == "mobile"
+ -DTIZEN_PROFILE_MOBILE:BOOL=ON \
+%else
+ -DTIZEN_PROFILE_MOBILE:BOOL=OFF \
+%endif
%if 0%{?certsvc_test_build}
-DCERTSVC_TEST_BUILD=1 \
-DCERT_SVC_TESTS=%CERT_SVC_TESTS \
-IF(${PROFILE_TARGET} STREQUAL "mobile")
- ADD_DEFINITIONS("-DPROFILE_MOBILE=\"${PROFILE_TARGET}\"")
+IF(TIZEN_PROFILE_MOBILE)
+ ADD_DEFINITIONS("-DTIZEN_PROFILE_MOBILE")
SET(LIB_CERT_CHECKER cert-checker)
-ENDIF(${PROFILE_TARGET} STREQUAL "mobile")
+ENDIF(TIZEN_PROFILE_MOBILE)
PKG_CHECK_MODULES(VCORE_DEPS
REQUIRED
#include <vcore/SignatureValidator.h>
-#ifdef PROFILE_MOBILE
+#ifdef TIZEN_PROFILE_MOBILE
#include <cchecker/ocsp.h>
#endif
return E_SIG_NONE;
} catch (const Ocsp::Exception::Base &e) {
LogInfo("Ocsp check throw exeption : " << e.DumpToString());
-#ifdef PROFILE_MOBILE
+#ifdef TIZEN_PROFILE_MOBILE
LogInfo("Launch cert-checker.");
-
if (cchecker_ocsp_request() != 0)
LogError("Load cert-checker failed.");
-
#endif
} catch (const std::exception &e) {
LogError("std exception occured : " << e.what());
return E_SIG_NONE;
} catch (const Ocsp::Exception::Base &e) {
LogInfo("Ocsp check throw exeption : " << e.DumpToString());
-#ifdef PROFILE_MOBILE
+#ifdef TIZEN_PROFILE_MOBILE
LogInfo("Launch cert-checker.");
-
if (cchecker_ocsp_request() != 0)
LogError("Load cert-checker failed.");
-
#endif
} catch (...) {
LogError("Unknown exception in SignatureValidator::checkList");