2008-04-27 06:10:09 +05:30
|
|
|
/*
|
2021-12-05 21:05:27 +05:30
|
|
|
* SPDX-FileCopyrightText: 1999 , Marek Michałkiewicz
|
|
|
|
* SPDX-FileCopyrightText: 2001 - 2005, Tomasz Kłoczko
|
2008-04-27 06:10:09 +05:30
|
|
|
*
|
2021-12-05 21:05:27 +05:30
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2008-04-27 06:10:09 +05:30
|
|
|
*/
|
|
|
|
|
2008-07-22 02:44:06 +05:30
|
|
|
#include <config.h>
|
2007-10-07 17:14:02 +05:30
|
|
|
#include <security/pam_appl.h>
|
2008-07-22 02:44:06 +05:30
|
|
|
#ifdef HAVE_SECURITY_PAM_MISC_H
|
|
|
|
# include <security/pam_misc.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_SECURITY_OPENPAM_H
|
|
|
|
# include <security/openpam.h>
|
|
|
|
#endif
|
|
|
|
|
2007-10-07 17:14:02 +05:30
|
|
|
|
2007-10-07 17:17:11 +05:30
|
|
|
static struct pam_conv conv = {
|
2008-07-22 02:44:06 +05:30
|
|
|
SHADOW_PAM_CONVERSATION,
|
2007-10-07 17:17:11 +05:30
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2007-10-07 17:14:02 +05:30
|
|
|
/* compatibility with different versions of Linux-PAM */
|
2008-07-22 02:44:06 +05:30
|
|
|
#if !HAVE_DECL_PAM_ESTABLISH_CRED
|
2007-10-07 17:14:02 +05:30
|
|
|
#define PAM_ESTABLISH_CRED PAM_CRED_ESTABLISH
|
|
|
|
#endif
|
2008-07-22 02:44:06 +05:30
|
|
|
#if !HAVE_DECL_PAM_DELETE_CRED
|
2007-10-07 17:14:02 +05:30
|
|
|
#define PAM_DELETE_CRED PAM_CRED_DELETE
|
|
|
|
#endif
|
2008-07-22 02:44:06 +05:30
|
|
|
#if !HAVE_DECL_PAM_NEW_AUTHTOK_REQD
|
2007-10-07 17:14:02 +05:30
|
|
|
#define PAM_NEW_AUTHTOK_REQD PAM_AUTHTOKEN_REQD
|
|
|
|
#endif
|
2008-07-22 02:44:06 +05:30
|
|
|
#if !HAVE_DECL_PAM_DATA_SILENT
|
2007-10-07 17:14:02 +05:30
|
|
|
#define PAM_DATA_SILENT 0
|
|
|
|
#endif
|