From 1a7b3c31095762afebeab1cc1717259c0e3c5cc9 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 24 Dec 2015 13:55:55 -0500 Subject: hal_rpc_logout_all(), hal_rpc_is_logged_in(). --- hal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hal.h') diff --git a/hal.h b/hal.h index 36b69dc..bf5ca6f 100644 --- a/hal.h +++ b/hal.h @@ -124,6 +124,7 @@ DEFINE_HAL_ERROR(HAL_ERROR_NO_KEY_SLOTS_AVAILABLE, "No key slots available") \ DEFINE_HAL_ERROR(HAL_ERROR_PIN_INCORRECT, "PIN incorrect") \ DEFINE_HAL_ERROR(HAL_ERROR_NO_CLIENT_SLOTS_AVAILABLE, "No client slots available") \ + DEFINE_HAL_ERROR(HAL_ERROR_FORBIDDEN, "Forbidden") \ END_OF_HAL_ERROR_LIST /* Marker to forestall silly line continuation errors */ @@ -554,6 +555,11 @@ extern hal_error_t hal_rpc_login(const hal_client_handle_t client, extern hal_error_t hal_rpc_logout(const hal_client_handle_t client); +extern hal_error_t hal_rpc_logout_all(void); + +extern hal_error_t hal_rpc_is_logged_in(const hal_client_handle_t client, + const hal_user_t user); + /* * Get random bytes. */ -- cgit v1.2.3