mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
Remove some dead code in PAM
verify_result_str() isn't used anymore.
This commit is contained in:
committed by
Daniel Drake
parent
69e987b335
commit
6f69aef553
@ -50,35 +50,6 @@
|
|||||||
|
|
||||||
static gboolean debug = FALSE;
|
static gboolean debug = FALSE;
|
||||||
|
|
||||||
enum fp_verify_result {
|
|
||||||
VERIFY_NO_MATCH = 0,
|
|
||||||
VERIFY_MATCH = 1,
|
|
||||||
VERIFY_RETRY = 100,
|
|
||||||
VERIFY_RETRY_TOO_SHORT = 101,
|
|
||||||
VERIFY_RETRY_CENTER_FINGER = 102,
|
|
||||||
VERIFY_RETRY_REMOVE_FINGER = 103,
|
|
||||||
};
|
|
||||||
|
|
||||||
static const char *verify_result_str(int result)
|
|
||||||
{
|
|
||||||
switch (result) {
|
|
||||||
case VERIFY_NO_MATCH:
|
|
||||||
return "No match";
|
|
||||||
case VERIFY_MATCH:
|
|
||||||
return "Match!";
|
|
||||||
case VERIFY_RETRY:
|
|
||||||
return "Retry scan";
|
|
||||||
case VERIFY_RETRY_TOO_SHORT:
|
|
||||||
return "Swipe too short, please retry";
|
|
||||||
case VERIFY_RETRY_CENTER_FINGER:
|
|
||||||
return "Finger not centered, please retry";
|
|
||||||
case VERIFY_RETRY_REMOVE_FINGER:
|
|
||||||
return "Please remove finger and retry";
|
|
||||||
default:
|
|
||||||
return "Unknown";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean send_info_msg(pam_handle_t *pamh, const char *msg)
|
static gboolean send_info_msg(pam_handle_t *pamh, const char *msg)
|
||||||
{
|
{
|
||||||
const struct pam_message mymsg = {
|
const struct pam_message mymsg = {
|
||||||
|
|||||||
Reference in New Issue
Block a user