]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - include/pamfail.h
2 * No copyright is claimed. This code is in the public domain; do with
5 * Written by Karel Zak <kzak@redhat.com>
7 #ifndef UTIL_LINUX_PAMFAIL_H
8 #include <security/pam_appl.h>
9 #ifdef HAVE_SECURITY_PAM_MISC_H
10 # include <security/pam_misc.h>
11 #elif defined(HAVE_SECURITY_OPENPAM_H)
12 # include <security/openpam.h>
17 pam_fail_check(pam_handle_t
*pamh
, int retcode
)
19 if (retcode
== PAM_SUCCESS
)
21 warnx("%s", pam_strerror(pamh
, retcode
));
22 pam_end(pamh
, retcode
);
26 #endif /* UTIL_LINUX_PAMFAIL_H */