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