int InternalEncryption::mount(const std::string& password)
{
try {
- return context->methodCall<int>("InternalEncryption::password", password);
+ return context->methodCall<int>("InternalEncryption::mount", password);
} catch (runtime::Exception& e) {
return -1;
}
}
}
-int InternalEncryption::encrypt(const std::string& password)
+int InternalEncryption::encrypt(const std::string& password, unsigned int options)
{
try {
- return context->methodCall<int>("InternalEncryption::encrypt", password);
+ return context->methodCall<int>("InternalEncryption::encrypt", password, options);
} catch (runtime::Exception& e) {
return -1;
}
}
}
+int InternalEncryption::recovery()
+{
+ try {
+ return context->methodCall<int>("InternalEncryption::recovery");
+ } catch (runtime::Exception& e) {
+ return -1;
+ }
+}
+
+int InternalEncryption::isPasswordInitialized()
+{
+ try {
+ return context->methodCall<int>("InternalEncryption::isPasswordInitialized");
+ } catch (runtime::Exception& e) {
+ return -1;
+ }
+}
+
+int InternalEncryption::initPassword(const std::string& password)
+{
+ try {
+ return context->methodCall<int>("InternalEncryption::initPassword",
+ password);
+ } catch (runtime::Exception& e) {
+ return -1;
+ }
+}
+
+int InternalEncryption::cleanPassword(const std::string& password)
+{
+ try {
+ return context->methodCall<int>("InternalEncryption::cleanPassword",
+ password);
+ } catch (runtime::Exception& e) {
+ return -1;
+ }
+}
+
int InternalEncryption::changePassword(const std::string& oldPassword,
const std::string& newPassword)
{
}
}
+int InternalEncryption::verifyPassword(const std::string& password)
+{
+ try {
+ return context->methodCall<int>("InternalEncryption::verifyPassword",
+ password);
+ } catch (runtime::Exception& e) {
+ return -1;
+ }
+}
+
int InternalEncryption::getState()
{
try {
}
}
+unsigned int InternalEncryption::getSupportedOptions()
+{
+ try {
+ return context->methodCall<unsigned int>("InternalEncryption::getSupportedOptions");
+ } catch (runtime::Exception& e) {
+ return -1;
+ }
+}
+
} // namespace ode