Response
For Version 1 and Version 2.
The client gives the Authentication Agent the challenge that it gets from the Security Gateway. The Authentication Agent shows the challenge to the user. The user enters a response to the challenge.
The Authentication Agent returns the user's Response back to the client, which forwards it to the Security Gateway.
Prototype
int Response( void *context, char *challenge, char *response, int *responseLength);
Arguments
|
Argument |
In/Out |
Meaning |
|---|---|---|
|
context |
In |
The context as provided by |
|
challenge |
Out |
The authentication challenge string as received from the Security Management Server. |
|
response |
Out |
The buffer to which the Authentication Agent's response is to be copied. |
|
usernameLength |
In |
In - Length of the buffer allocated for Out - If username is longer than the specified length, the function should return |
Return Values
-
PLUGIN_OKif successful. -
PLUGIN_ABORTif the client should take over the authentication. -
PLUGIN_DATA_TOO_LONGif the buffer specified byresponseis not long enough. -
PLUGIN_CANCELif the authentication should be terminated. This should be used with discretion since Authentication Agents generally do not have enough information to determine whether the authentication should be cancelled.