diff options
Diffstat (limited to 'rpc_misc.c')
-rw-r--r-- | rpc_misc.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -133,7 +133,7 @@ static hal_error_t login(const hal_client_handle_t client, const hal_ks_pin_t *p; hal_error_t err; - if ((err = hal_ks_get_pin(user, &p)) != HAL_OK) + if ((err = hal_get_pin(user, &p)) != HAL_OK) return err; uint8_t buf[sizeof(p->pin)]; @@ -207,7 +207,7 @@ static hal_error_t set_pin(const hal_client_handle_t client, const hal_ks_pin_t *pp; hal_error_t err; - if ((err = hal_ks_get_pin(user, &pp)) != HAL_OK) + if ((err = hal_get_pin(user, &pp)) != HAL_OK) return err; hal_ks_pin_t p = *pp; @@ -219,7 +219,7 @@ static hal_error_t set_pin(const hal_client_handle_t client, (const uint8_t *) newpin, newpin_len, p.salt, sizeof(p.salt), p.pin, sizeof(p.pin), p.iterations)) != HAL_OK || - (err = hal_ks_set_pin(user, &p)) != HAL_OK) + (err = hal_set_pin(user, &p)) != HAL_OK) return err; return HAL_OK; @@ -238,13 +238,13 @@ hal_error_t hal_set_pin_default_iterations(const hal_client_handle_t client, } const hal_rpc_misc_dispatch_t hal_rpc_local_misc_dispatch = { - set_pin, - login, - logout, - logout_all, - is_logged_in, - get_random, - get_version + .set_pin = set_pin, + .login = login, + .logout = logout, + .logout_all = logout_all, + .is_logged_in = is_logged_in, + .get_random = get_random, + .get_version = get_version }; /* |