summaryrefslogtreecommitdiff
path: root/libpam/pam_auth.c
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 12:44:11 -0800
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 12:44:11 -0800
commitefd31890b5ed496a5a00c08a262da240e66a4ddc (patch)
tree22a7aab22b3a491bb58df250d7d6409e0c160bcc /libpam/pam_auth.c
parent067affee9267fa0d1c21835182ba639ba33e820f (diff)
New upstream version 0.76
Diffstat (limited to 'libpam/pam_auth.c')
-rw-r--r--libpam/pam_auth.c68
1 files changed, 0 insertions, 68 deletions
diff --git a/libpam/pam_auth.c b/libpam/pam_auth.c
deleted file mode 100644
index dbbdf00f..00000000
--- a/libpam/pam_auth.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * pam_auth.c -- PAM authentication
- *
- * $Id$
- *
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "pam_private.h"
-
-int pam_authenticate(pam_handle_t *pamh, int flags)
-{
- int retval;
-
- D(("pam_authenticate called"));
-
- IF_NO_PAMH("pam_authenticate", pamh, PAM_SYSTEM_ERR);
-
- if (__PAM_FROM_MODULE(pamh)) {
- D(("called from module!?"));
- return PAM_SYSTEM_ERR;
- }
-
- if (pamh->former.choice == PAM_NOT_STACKED) {
- _pam_sanitize(pamh);
- _pam_start_timer(pamh); /* we try to make the time for a failure
- independent of the time it takes to
- fail */
- }
-
- retval = _pam_dispatch(pamh, flags, PAM_AUTHENTICATE);
-
- if (retval != PAM_INCOMPLETE) {
- _pam_sanitize(pamh);
- _pam_await_timer(pamh, retval); /* if unsuccessful then wait now */
- D(("pam_authenticate exit"));
- } else {
- D(("will resume when ready"));
- }
-
- return retval;
-}
-
-int pam_setcred(pam_handle_t *pamh, int flags)
-{
- int retval;
-
- D(("pam_setcred called"));
-
- IF_NO_PAMH("pam_setcred", pamh, PAM_SYSTEM_ERR);
-
- if (__PAM_FROM_MODULE(pamh)) {
- D(("called from module!?"));
- return PAM_SYSTEM_ERR;
- }
-
- if (! flags) {
- flags = PAM_ESTABLISH_CRED;
- }
-
- retval = _pam_dispatch(pamh, flags, PAM_SETCRED);
-
- D(("pam_setcred exit"));
-
- return retval;
-}