From c33d89bc890f18a9707dfd2b2e324e010979a9bf Mon Sep 17 00:00:00 2001 From: Krzysztof Jackiewicz Date: Tue, 19 Dec 2017 14:43:14 +0100 Subject: [PATCH] Fix API functions' names Change-Id: Ibae1919e0f0c490d762ee05f58f01138347f6a22 --- lib/ode/keys.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ode/keys.cpp b/lib/ode/keys.cpp index ba6d24f..3cbf825 100644 --- a/lib/ode/keys.cpp +++ b/lib/ode/keys.cpp @@ -60,7 +60,7 @@ int ode_key_init(const char* device, 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); @@ -71,9 +71,9 @@ int ode_key_clean(const char* device, const char* password) 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); @@ -85,7 +85,7 @@ int ode_key_change(const char* device, 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); -- 2.7.4