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 $
6 * $DragonFly: src/contrib/libpam/modules/pam_deny/Attic/pam_deny.c,v 1.2 2003/06/17 04:24:03 dillon Exp $
8 * Written by Andrew Morgan <morgan@parc.power.net> 1996/3/11
10 * $Log: pam_deny.c,v $
11 * Revision 1.4 1997/02/15 19:05:15 morgan
14 * Revision 1.3 1996/06/02 08:06:19 morgan
15 * changes for new static protocol
17 * Revision 1.2 1996/05/26 04:01:12 morgan
18 * added static support
20 * Revision 1.1 1996/03/16 17:47:36 morgan
26 * here, we make definitions for the externally accessible functions
27 * in this file (these definitions are required for static modules
28 * but strongly encouraged generally) they are used to instruct the
29 * modules include file to define their prototypes.
33 #define PAM_SM_ACCOUNT
34 #define PAM_SM_SESSION
35 #define PAM_SM_PASSWORD
37 #include <security/pam_modules.h>
39 /* --- authentication management functions --- */
41 PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh,int flags,int argc
47 PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc
50 return PAM_CRED_UNAVAIL;
53 /* --- account management functions --- */
55 PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t *pamh,int flags,int argc
58 return PAM_ACCT_EXPIRED;
61 /* --- password management --- */
63 PAM_EXTERN int pam_sm_chauthtok(pam_handle_t *pamh,int flags,int argc
66 return PAM_AUTHTOK_ERR;
69 /* --- session management --- */
71 PAM_EXTERN int pam_sm_open_session(pam_handle_t *pamh,int flags,int argc
74 return PAM_SYSTEM_ERR;
77 PAM_EXTERN int pam_sm_close_session(pam_handle_t *pamh,int flags,int argc
80 return PAM_SYSTEM_ERR;
83 /* end of module definition */
85 PAM_MODULE_ENTRY("pam_deny");