4 * $Id: pam_deny.c,v 1.4 1997/02/15 19:05:15 morgan Exp $
5 * $FreeBSD: src/contrib/libpam/modules/pam_deny/pam_deny.c,v 1.3.4.2 2001/06/11 15:28:17 markm Exp $
7 * Written by Andrew Morgan <morgan@parc.power.net> 1996/3/11
10 * Revision 1.4 1997/02/15 19:05:15 morgan
13 * Revision 1.3 1996/06/02 08:06:19 morgan
14 * changes for new static protocol
16 * Revision 1.2 1996/05/26 04:01:12 morgan
17 * added static support
19 * Revision 1.1 1996/03/16 17:47:36 morgan
25 * here, we make definitions for the externally accessible functions
26 * in this file (these definitions are required for static modules
27 * but strongly encouraged generally) they are used to instruct the
28 * modules include file to define their prototypes.
32 #define PAM_SM_ACCOUNT
33 #define PAM_SM_SESSION
34 #define PAM_SM_PASSWORD
36 #include <security/pam_modules.h>
38 /* --- authentication management functions --- */
40 PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh,int flags,int argc
46 PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc
49 return PAM_CRED_UNAVAIL;
52 /* --- account management functions --- */
54 PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t *pamh,int flags,int argc
57 return PAM_ACCT_EXPIRED;
60 /* --- password management --- */
62 PAM_EXTERN int pam_sm_chauthtok(pam_handle_t *pamh,int flags,int argc
65 return PAM_AUTHTOK_ERR;
68 /* --- session management --- */
70 PAM_EXTERN int pam_sm_open_session(pam_handle_t *pamh,int flags,int argc
73 return PAM_SYSTEM_ERR;
76 PAM_EXTERN int pam_sm_close_session(pam_handle_t *pamh,int flags,int argc
79 return PAM_SYSTEM_ERR;
82 /* end of module definition */
84 PAM_MODULE_ENTRY("pam_deny");