Blame src/clients/ksu/pam.h

rpm-build 1a6e45
/*
rpm-build 1a6e45
 * src/clients/ksu/pam.h
rpm-build 1a6e45
 *
rpm-build 1a6e45
 * Copyright 2007,2009,2010 Red Hat, Inc.
rpm-build 1a6e45
 *
rpm-build 1a6e45
 * All Rights Reserved.
rpm-build 1a6e45
 *
rpm-build 1a6e45
 * Redistribution and use in source and binary forms, with or without
rpm-build 1a6e45
 * modification, are permitted provided that the following conditions are met:
rpm-build 1a6e45
 *
rpm-build 1a6e45
 *  Redistributions of source code must retain the above copyright notice, this
rpm-build 1a6e45
 *  list of conditions and the following disclaimer.
rpm-build 1a6e45
 *
rpm-build 1a6e45
 *  Redistributions in binary form must reproduce the above copyright notice,
rpm-build 1a6e45
 *  this list of conditions and the following disclaimer in the documentation
rpm-build 1a6e45
 *  and/or other materials provided with the distribution.
rpm-build 1a6e45
 *
rpm-build 1a6e45
 *  Neither the name of Red Hat, Inc. nor the names of its contributors may be
rpm-build 1a6e45
 *  used to endorse or promote products derived from this software without
rpm-build 1a6e45
 *  specific prior written permission.
rpm-build 1a6e45
 *
rpm-build 1a6e45
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
rpm-build 1a6e45
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
rpm-build 1a6e45
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
rpm-build 1a6e45
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
rpm-build 1a6e45
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
rpm-build 1a6e45
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
rpm-build 1a6e45
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
rpm-build 1a6e45
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
rpm-build 1a6e45
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
rpm-build 1a6e45
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
rpm-build 1a6e45
 * POSSIBILITY OF SUCH DAMAGE.
rpm-build 1a6e45
 * 
rpm-build 1a6e45
 * Convenience wrappers for using PAM.
rpm-build 1a6e45
 */
rpm-build 1a6e45
rpm-build 1a6e45
#include <krb5.h>
rpm-build 1a6e45
#ifdef HAVE_SECURITY_PAM_APPL_H
rpm-build 1a6e45
#include <security/pam_appl.h>
rpm-build 1a6e45
#endif
rpm-build 1a6e45
rpm-build 1a6e45
#define USE_PAM_CONFIGURATION_KEYWORD "use_pam"
rpm-build 1a6e45
rpm-build 1a6e45
#ifdef USE_PAM
rpm-build 1a6e45
int appl_pam_enabled(krb5_context context, const char *section);
rpm-build 1a6e45
int appl_pam_acct_mgmt(const char *service, int interactive,
rpm-build 1a6e45
		       const char *local_username,
rpm-build 1a6e45
		       const char *non_interactive_password,
rpm-build 1a6e45
		       const char *hostname,
rpm-build 1a6e45
		       const char *ruser,
rpm-build 1a6e45
		       const char *tty);
rpm-build 1a6e45
int appl_pam_requires_chauthtok(void);
rpm-build 1a6e45
int appl_pam_session_open(void);
rpm-build 1a6e45
int appl_pam_setenv(void);
rpm-build 1a6e45
int appl_pam_cred_init(void);
rpm-build 1a6e45
void appl_pam_cleanup(void);
rpm-build 1a6e45
#endif