]> granicus.if.org Git - linux-pam/blob - libpam/pam_tokens.h
Relevant BUGIDs: 109219
[linux-pam] / libpam / pam_tokens.h
1 /*
2  * pam_tokens.h
3  *
4  * $Id$
5  *
6  * This is a Linux-PAM Library Private Header file. It contains tokens
7  * that are used when we parse the configuration file(s).
8  *
9  * Please see end of file for copyright.
10  *
11  * Creator: Andrew Morgan.
12  * 
13  * $Log$
14  * Revision 1.1  2000/06/20 22:11:21  agmorgan
15  * Initial revision
16  *
17  * Revision 1.1.1.1  1998/07/12 05:17:15  morgan
18  * Linux PAM sources pre-0.66
19  *
20  */
21
22 #ifndef _PAM_TOKENS_H
23 #define _PAM_TOKENS_H
24
25 /* an array of actions */
26
27 const char * const _pam_token_actions[-_PAM_ACTION_UNDEF] = {
28     "ignore",     /*  0 */
29     "ok",         /* -1 */
30     "done",       /* -2 */
31     "bad",        /* -3 */
32     "die",        /* -4 */
33     "reset",      /* -5 */
34 };
35
36 /* an array of possible return values */
37
38 const char * const _pam_token_returns[_PAM_RETURN_VALUES+1] = {
39     "success",           /* 0 */
40     "open_err",          /* 1 */
41     "symbol_err",        /* 2 */
42     "service_err",       /* 3 */
43     "system_err",        /* 4 */
44     "buf_err",           /* 5 */
45     "perm_denied",       /* 6 */
46     "auth_err",          /* 7 */
47     "cred_insufficient", /* 8 */
48     "authinfo_unavail",  /* 9 */
49     "user_unknown",      /* 10 */
50     "maxtries",          /* 11 */
51     "new_authtok_reqd",         /* 12 */
52     "acct_expired",      /* 13 */
53     "session_err",       /* 14 */
54     "cred_unavail",      /* 15 */
55     "cred_expired",      /* 16 */
56     "cred_err",          /* 17 */
57     "no_module_data",    /* 18 */
58     "conv_err",          /* 19 */
59     "authtok_err",       /* 20 */
60     "authtok_recover_err", /* 21 */
61     "authtok_lock_busy", /* 22 */
62     "authtok_disable_aging", /* 23 */
63     "try_again",         /* 24 */
64     "ignore",            /* 25 */
65     "abort",             /* 26 */
66     "authtok_expired",   /* 27 */
67     "module_unknown",    /* 28 */
68     "bad_item",          /* 29 */
69 /* add new return codes here */
70     "default"            /* this is _PAM_RETURN_VALUES and indicates
71                             the default return action */
72 };
73
74 /*
75  * Copyright (C) 1998, Andrew G. Morgan <morgan@linux.kernel.org>
76  *
77  * All rights reserved
78  *
79  * Redistribution and use in source and binary forms, with or without
80  * modification, are permitted provided that the following conditions
81  * are met:
82  * 1. Redistributions of source code must retain the above copyright
83  *    notice, and the entire permission notice in its entirety,
84  *    including the disclaimer of warranties.
85  * 2. Redistributions in binary form must reproduce the above copyright
86  *    notice, this list of conditions and the following disclaimer in the
87  *    documentation and/or other materials provided with the distribution.
88  * 3. The name of the author may not be used to endorse or promote
89  *    products derived from this software without specific prior
90  *    written permission.
91  * 
92  * ALTERNATIVELY, this product may be distributed under the terms of
93  * the GNU Public License, in which case the provisions of the GPL are
94  * required INSTEAD OF the above restrictions.  (This clause is
95  * necessary due to a potential bad interaction between the GPL and
96  * the restrictions contained in a BSD-style copyright.)
97  * 
98  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
99  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
100  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
101  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
102  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
103  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
104  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
105  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
106  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
107  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
108  * OF THE POSSIBILITY OF SUCH DAMAGE.
109  */
110
111 #endif /* _PAM_PRIVATE_H_ */