pub trait Server {
// Required method
fn next(&mut self, response: Option<&[u8]>) -> Result<(Vec<u8>, bool)>;
}
Expand description
Server interface to perform challenge-response authentication.
Required Methods§
Sourcefn next(&mut self, response: Option<&[u8]>) -> Result<(Vec<u8>, bool)>
fn next(&mut self, response: Option<&[u8]>) -> Result<(Vec<u8>, bool)>
Begins or continues challenge-response authentication. If the client supplies an initial response, response is non-nil.
If the authentication is finished, done is set to true. If the authentication has failed, an error is returned.