Function bsd_auth_sys::auth_userresponse [−][src]
pub unsafe extern "C" fn auth_userresponse(
_as: *mut auth_session_t,
_response: *mut c_char,
_more: c_int
) -> c_int
Expand description
Complete the challenge-response authentication initiated by auth_userchallenge
Closes the BSD Authentication session
From authenticate(3)
:
The user should provide a password which is the `response`. In addition to the password, the pointer returned `auth_userchallenge()` shoud be passed in as `as` and the value of `more` should be non-zero if the program wishes to allow more attempts. If `more` is zero then the session will be closed. The `auth_userresponse()` function closes the BSD Authentication session and has the same return value as `auth_userokay()`. For security reasons, when a `response` is specified, `auth_userresponse()` will zero out its value before it returns.