Main Page | Namespace List | Class List | Directories | File List | Class Members | File Members

auth-pam.h

Go to the documentation of this file.
00001 /* $Id: auth-pam.h,v 1.27 2004/09/11 12:17:26 dtucker Exp $ */
00002 
00003 /*
00004  * Copyright (c) 2000 Damien Miller.  All rights reserved.
00005  *
00006  * Redistribution and use in source and binary forms, with or without
00007  * modification, are permitted provided that the following conditions
00008  * are met:
00009  * 1. Redistributions of source code must retain the above copyright
00010  *    notice, this list of conditions and the following disclaimer.
00011  * 2. Redistributions in binary form must reproduce the above copyright
00012  *    notice, this list of conditions and the following disclaimer in the
00013  *    documentation and/or other materials provided with the distribution.
00014  *
00015  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
00016  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00017  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
00018  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
00019  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
00020  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00021  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00022  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00023  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00024  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00025  */
00026 
00027 #include "includes.h"
00028 #ifdef USE_PAM
00029 
00030 #if !defined(SSHD_PAM_SERVICE)
00031 # define SSHD_PAM_SERVICE               __progname
00032 #endif
00033 
00034 void start_pam(Authctxt *);
00035 void finish_pam(void);
00036 u_int do_pam_account(void);
00037 void do_pam_session(void);
00038 void do_pam_set_tty(const char *);
00039 void do_pam_setcred(int );
00040 void do_pam_chauthtok(void);
00041 int do_pam_putenv(char *, char *);
00042 char ** fetch_pam_environment(void);
00043 char ** fetch_pam_child_environment(void);
00044 void free_pam_environment(char **);
00045 void sshpam_thread_cleanup(void);
00046 void sshpam_cleanup(void);
00047 int sshpam_auth_passwd(Authctxt *, const char *);
00048 int is_pam_session_open(void);
00049 
00050 #endif /* USE_PAM */

© sourcejam.com 2005-2008