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