return toApiError(key.init(device, password, params));
}
-int ode_key_clean(const char* device, const char* password)
+int ode_key_remove(const char* device, const char* password)
{
RET_ON_FAILURE(device, ODE_ERROR_INVALID_PARAMETER);
RET_ON_FAILURE(password, ODE_ERROR_INVALID_PARAMETER);
return toApiError(key.remove(device, password));
}
-int ode_key_change(const char* device,
- const char* cur_password,
- const char* new_password)
+int ode_key_change_password(const char* device,
+ const char* cur_password,
+ const char* new_password)
{
RET_ON_FAILURE(device, ODE_ERROR_INVALID_PARAMETER);
RET_ON_FAILURE(cur_password, ODE_ERROR_INVALID_PARAMETER);
return toApiError(key.changePassword(device, cur_password, new_password));
}
-int ode_key_verify(const char* device, const char* password, bool* result)
+int ode_key_verify_password(const char* device, const char* password, bool* result)
{
RET_ON_FAILURE(device, ODE_ERROR_INVALID_PARAMETER);
RET_ON_FAILURE(password, ODE_ERROR_INVALID_PARAMETER);