summaryrefslogtreecommitdiff
path: root/src/gs-auth-pam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gs-auth-pam.c')
-rw-r--r--src/gs-auth-pam.c30
1 files changed, 2 insertions, 28 deletions
diff --git a/src/gs-auth-pam.c b/src/gs-auth-pam.c
index a4961b9..0420b9e 100644
--- a/src/gs-auth-pam.c
+++ b/src/gs-auth-pam.c
@@ -4,6 +4,7 @@
* Copyright (C) 2006 Ray Strode <[email protected]>
* Copyright (C) 2003 Bill Nottingham <[email protected]>
* Copyright (c) 1993-2003 Jamie Zawinski <[email protected]>
+ * Copyright (C) 2012-2021 MATE Developers
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -45,6 +46,7 @@
#include <gtk/gtk.h>
#include "gs-auth.h"
+#include "gs-auth-pam.h"
#include "subprocs.h"
@@ -63,7 +65,6 @@
# define PAM_NO_DELAY(pamh) /* */
#endif /* !HAVE_PAM_FAIL_DELAY */
-
/* On SunOS 5.6, and on Linux with PAM 0.64, pam_strerror() takes two args.
On some other Linux systems with some other version of PAM (e.g.,
whichever Debian release comes with a 2.2.5 kernel) it takes one arg.
@@ -125,33 +126,6 @@ gs_auth_get_verbose (void)
return verbose_enabled;
}
-static GSAuthMessageStyle
-pam_style_to_gs_style (int pam_style)
-{
- GSAuthMessageStyle style;
-
- switch (pam_style)
- {
- case PAM_PROMPT_ECHO_ON:
- style = GS_AUTH_MESSAGE_PROMPT_ECHO_ON;
- break;
- case PAM_PROMPT_ECHO_OFF:
- style = GS_AUTH_MESSAGE_PROMPT_ECHO_OFF;
- break;
- case PAM_ERROR_MSG:
- style = GS_AUTH_MESSAGE_ERROR_MSG;
- break;
- case PAM_TEXT_INFO:
- style = GS_AUTH_MESSAGE_TEXT_INFO;
- break;
- default:
- g_assert_not_reached ();
- break;
- }
-
- return style;
-}
-
static gboolean
auth_message_handler (GSAuthMessageStyle style,
const char *msg,