auth-pam.h revision 181097
1230557Sjimharris/* $Id: auth-pam.h,v 1.27 2004/09/11 12:17:26 dtucker Exp $ */ 2230557Sjimharris/* $FreeBSD: head/crypto/openssh/auth-pam.h 181097 2008-08-01 01:13:41Z des $ */ 3230557Sjimharris 4230557Sjimharris/* 5230557Sjimharris * Copyright (c) 2000 Damien Miller. All rights reserved. 6230557Sjimharris * 7230557Sjimharris * Redistribution and use in source and binary forms, with or without 8230557Sjimharris * modification, are permitted provided that the following conditions 9230557Sjimharris * are met: 10230557Sjimharris * 1. Redistributions of source code must retain the above copyright 11230557Sjimharris * notice, this list of conditions and the following disclaimer. 12230557Sjimharris * 2. Redistributions in binary form must reproduce the above copyright 13230557Sjimharris * notice, this list of conditions and the following disclaimer in the 14230557Sjimharris * documentation and/or other materials provided with the distribution. 15230557Sjimharris * 16230557Sjimharris * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17230557Sjimharris * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18230557Sjimharris * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19230557Sjimharris * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20230557Sjimharris * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21230557Sjimharris * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22230557Sjimharris * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23230557Sjimharris * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24230557Sjimharris * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25230557Sjimharris * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26230557Sjimharris */ 27230557Sjimharris 28230557Sjimharris#include "includes.h" 29230557Sjimharris#ifdef USE_PAM 30230557Sjimharris 31230557Sjimharris#if !defined(SSHD_PAM_SERVICE) 32230557Sjimharris# define SSHD_PAM_SERVICE __progname 33230557Sjimharris#endif 34230557Sjimharris 35230557Sjimharrisvoid start_pam(Authctxt *); 36230557Sjimharrisvoid finish_pam(void); 37230557Sjimharrisu_int do_pam_account(void); 38230557Sjimharrisvoid do_pam_session(void); 39230557Sjimharrisvoid do_pam_set_tty(const char *); 40230557Sjimharrisvoid do_pam_setcred(int ); 41230557Sjimharrisvoid do_pam_chauthtok(void); 42230557Sjimharrisint do_pam_putenv(char *, char *); 43230557Sjimharrischar ** fetch_pam_environment(void); 44230557Sjimharrischar ** fetch_pam_child_environment(void); 45230557Sjimharrisvoid free_pam_environment(char **); 46230557Sjimharrisvoid sshpam_thread_cleanup(void); 47230557Sjimharrisvoid sshpam_cleanup(void); 48230557Sjimharrisint sshpam_auth_passwd(Authctxt *, const char *); 49230557Sjimharrisint is_pam_session_open(void); 50230557Sjimharris 51230557Sjimharris#endif /* USE_PAM */ 52230557Sjimharris