683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik/*
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik SSSD
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik Compat declarations for PAM.
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik Authors:
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik Lukas Slebodnik <lslebodn@redhat.com>
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik Copyright (C) Red Hat, Inc 2014
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik This program is free software; you can redistribute it and/or modify
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik it under the terms of the GNU Lesser General Public License as published by
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik the Free Software Foundation; either version 3 of the License, or
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik (at your option) any later version.
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik This program is distributed in the hope that it will be useful,
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik but WITHOUT ANY WARRANTY; without even the implied warranty of
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik GNU Lesser General Public License for more details.
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik You should have received a copy of the GNU Lesser General Public License
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik along with this program. If not, see <http://www.gnu.org/licenses/>.
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik*/
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik#ifndef _SSS_PAM_COMPAT_H
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik#define _SSS_PAM_COMPAT_H
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik#ifdef HAVE_SECURITY_PAM_MODUTIL_H
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik# include <security/pam_modutil.h>
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik#endif /* HAVE_SECURITY_PAM_MODUTIL_H */
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik#ifdef HAVE_SECURITY_PAM_EXT_H
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik# include <security/pam_ext.h>
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik#endif /* HAVE_SECURITY_PAM_EXT_H */
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik#ifndef HAVE_PAM_VSYSLOG
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik#define pam_vsyslog(pamh, priority, fmt, vargs) \
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik vsyslog((priority), (fmt), (vargs))
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik#endif /* HAVE_PAM_VSYSLOG */
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik#ifndef PAM_BAD_ITEM
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik# define PAM_BAD_ITEM PAM_USER_UNKNOWN
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik#endif /* PAM_BAD_ITEM */
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik
683e1f67d08be7165ea456d4594c4c8a4eddc9b3Lukas Slebodnik#endif /* _SSS_PAM_COMPAT_H */