This function is used to authenticate users.
int check_permit(char *username, char *password, int appcode, void *permissions
Returns one of the following:
If the user has been successfully authenticated.
If the user was not authenticated.
check_permit() function is called
by an application when it wishes to check if a particular user is
authorized to use that application. The
as entered by the end user, and the
selected from the list in
the permissions parameter is unused in the example applications
and in this library implementation, but can be used for checking
that the user has the required access permissions for a specific
operation, such as writing a system file.
The example implementation of
performs a string comparison of the password and username, and if
the two match, it is regarded as a positive authentication. Your
implementation must implement a proper password authenticating mechanism
in order to be secure.