#define EXTERNAL_OPTION_ONLY_NEW_FILE_VCONF_KEY VCONFKEY_SDE_ENCRYPT_NEWFILE
#define EXTERNAL_OPTION_EXCEPT_FOR_MEDIA_FILE_VCONF_KEY VCONFKEY_SDE_EXCLUDE_MEDIAFILE
+#define PRIVILEGE_PLATFORM "http://tizen.org/privilege/internal/default/platform"
+
namespace ode {
namespace {
ExternalEncryption::ExternalEncryption(ODEControlContext &ctx) :
context(ctx)
{
- context.expose(this, "", (int)(ExternalEncryption::mount)(std::string));
- context.expose(this, "", (int)(ExternalEncryption::umount)());
- context.expose(this, "", (int)(ExternalEncryption::encrypt)(std::string, unsigned int));
- context.expose(this, "", (int)(ExternalEncryption::decrypt)(std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(ExternalEncryption::mount)(std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(ExternalEncryption::umount)());
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(ExternalEncryption::encrypt)(std::string, unsigned int));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(ExternalEncryption::decrypt)(std::string));
context.expose(this, "", (int)(ExternalEncryption::isPasswordInitialized)());
- context.expose(this, "", (int)(ExternalEncryption::initPassword)(std::string));
- context.expose(this, "", (int)(ExternalEncryption::cleanPassword)(std::string));
- context.expose(this, "", (int)(ExternalEncryption::changePassword)(std::string, std::string));
- context.expose(this, "", (int)(ExternalEncryption::verifyPassword)(std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(ExternalEncryption::initPassword)(std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(ExternalEncryption::cleanPassword)(std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(ExternalEncryption::changePassword)(std::string, std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(ExternalEncryption::verifyPassword)(std::string));
context.expose(this, "", (int)(ExternalEncryption::getState)());
context.expose(this, "", (unsigned int)(ExternalEncryption::getSupportedOptions)());
#define INTERNAL_STATE_VCONF_KEY VCONFKEY_ODE_CRYPTO_STATE
#define INTERNAL_OPTION_ONLY_USED_REGION_VCONF_KEY VCONFKEY_ODE_FAST_ENCRYPTION
+#define PRIVILEGE_PLATFORM "http://tizen.org/privilege/internal/default/platform"
+
namespace ode {
namespace {
InternalEncryption::InternalEncryption(ODEControlContext& ctx) :
context(ctx)
{
- context.expose(this, "", (int)(InternalEncryption::mount)(std::string));
- context.expose(this, "", (int)(InternalEncryption::umount)());
- context.expose(this, "", (int)(InternalEncryption::encrypt)(std::string, unsigned int));
- context.expose(this, "", (int)(InternalEncryption::decrypt)(std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(InternalEncryption::mount)(std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(InternalEncryption::umount)());
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(InternalEncryption::encrypt)(std::string, unsigned int));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(InternalEncryption::decrypt)(std::string));
context.expose(this, "", (int)(InternalEncryption::isPasswordInitialized)());
- context.expose(this, "", (int)(InternalEncryption::initPassword)(std::string));
- context.expose(this, "", (int)(InternalEncryption::cleanPassword)(std::string));
- context.expose(this, "", (int)(InternalEncryption::changePassword)(std::string, std::string));
- context.expose(this, "", (int)(InternalEncryption::verifyPassword)(std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(InternalEncryption::initPassword)(std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(InternalEncryption::cleanPassword)(std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(InternalEncryption::changePassword)(std::string, std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(InternalEncryption::verifyPassword)(std::string));
context.expose(this, "", (int)(InternalEncryption::getState)());
context.expose(this, "", (unsigned int)(InternalEncryption::getSupportedOptions)());
}
#include "block-device.h"
#include "ext4-tool.h"
+#define PRIVILEGE_PLATFORM "http://tizen.org/privilege/internal/default/platform"
+
namespace ode {
namespace {
SecureErase::SecureErase(ODEControlContext &ctx) :
context(ctx), devicePath("")
{
- context.expose(this, "", (int)(SecureErase::erase)(std::string));
- context.expose(this, "", (int)(SecureErase::clean)(std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(SecureErase::erase)(std::string));
+ context.expose(this, PRIVILEGE_PLATFORM, (int)(SecureErase::clean)(std::string));
}
SecureErase::~SecureErase()