Merge from vendor branch GCC:
[dragonfly.git] / contrib / libpam / modules / pam_deny / pam_deny.c
1 /* pam_deny module */
2
3 /*
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 $
7  *
8  * Written by Andrew Morgan <morgan@parc.power.net> 1996/3/11
9  *
10  * $Log: pam_deny.c,v $
11  * Revision 1.4  1997/02/15 19:05:15  morgan
12  * fixed email
13  *
14  * Revision 1.3  1996/06/02 08:06:19  morgan
15  * changes for new static protocol
16  *
17  * Revision 1.2  1996/05/26 04:01:12  morgan
18  * added static support
19  *
20  * Revision 1.1  1996/03/16 17:47:36  morgan
21  * Initial revision
22  *
23  */
24
25 /*
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.
30  */
31
32 #define PAM_SM_AUTH
33 #define PAM_SM_ACCOUNT
34 #define PAM_SM_SESSION
35 #define PAM_SM_PASSWORD
36
37 #include <security/pam_modules.h>
38
39 /* --- authentication management functions --- */
40
41 PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh,int flags,int argc
42                         ,const char **argv)
43 {
44      return PAM_AUTH_ERR;
45 }
46
47 PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc
48                    ,const char **argv)
49 {
50      return PAM_CRED_UNAVAIL;
51 }
52
53 /* --- account management functions --- */
54
55 PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t *pamh,int flags,int argc
56                      ,const char **argv)
57 {
58      return PAM_ACCT_EXPIRED;
59 }
60
61 /* --- password management --- */
62
63 PAM_EXTERN int pam_sm_chauthtok(pam_handle_t *pamh,int flags,int argc
64                      ,const char **argv)
65 {
66      return PAM_AUTHTOK_ERR;
67 }
68
69 /* --- session management --- */
70
71 PAM_EXTERN int pam_sm_open_session(pam_handle_t *pamh,int flags,int argc
72                         ,const char **argv)
73 {
74     return PAM_SYSTEM_ERR;
75 }
76
77 PAM_EXTERN int pam_sm_close_session(pam_handle_t *pamh,int flags,int argc
78                          ,const char **argv)
79 {
80      return PAM_SYSTEM_ERR;
81 }
82
83 /* end of module definition */
84
85 PAM_MODULE_ENTRY("pam_deny");