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