Function teaclave_client_sdk::bindings::teaclave_user_register
source · [−]#[no_mangle]
pub unsafe extern "C" fn teaclave_user_register(
client: &mut AuthenticationClient,
user_id: *const c_char,
user_password: *const c_char,
role: *const c_char,
attribute: *const c_char
) -> c_int
Expand description
Register a new user with user_id
and user_password
. The function returns
0 for success. On error, the function returns 1.
Safety
user_id
, user_password
, role
, attribute
should be C string (null terminated).