#[no_mangle]
pub unsafe extern "C" fn teaclave_authentication_set_credential(
client: &mut AuthenticationClient,
user_id: *const c_char,
user_token: *const c_char
) -> c_int
Expand description
Set user’s credential with user_id
and user_token
. The function returns
0 for success. On error, the function returns 1.
Safety
user_id
and user_token
should be C string (null terminated).