Deleted Added
full compact
pam_constants.h (99158) pam_constants.h (99160)
1/*-
2 * Copyright (c) 2002 Networks Associates Technology, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by ThinkSec AS and
6 * Network Associates Laboratories, the Security Research Division of
7 * Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
8 * ("CBOSS"), as part of the DARPA CHATS research program.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. The name of the author may not be used to endorse or promote
19 * products derived from this software without specific prior written
20 * permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
23 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
1/*-
2 * Copyright (c) 2002 Networks Associates Technology, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by ThinkSec AS and
6 * Network Associates Laboratories, the Security Research Division of
7 * Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
8 * ("CBOSS"), as part of the DARPA CHATS research program.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. The name of the author may not be used to endorse or promote
19 * products derived from this software without specific prior written
20 * permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
23 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $P4: //depot/projects/openpam/include/security/pam_constants.h#17 $
34 * $P4: //depot/projects/openpam/include/security/pam_constants.h#18 $
35 */
36
37#ifndef _PAM_CONSTANTS_H_INCLUDED
38#define _PAM_CONSTANTS_H_INCLUDED
39
40#include <security/openpam_version.h>
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46/*
47 * XSSO 5.2
48 */
49enum {
50 PAM_SUCCESS = 0,
51 PAM_OPEN_ERR = 1,
52 PAM_SYMBOL_ERR = 2,
53 PAM_SERVICE_ERR = 3,
54 PAM_SYSTEM_ERR = 4,
55 PAM_BUF_ERR = 5,
56 PAM_CONV_ERR = 6,
57 PAM_PERM_DENIED = 7,
58 PAM_MAXTRIES = 8,
59 PAM_AUTH_ERR = 9,
60 PAM_NEW_AUTHTOK_REQD = 10,
61 PAM_CRED_INSUFFICIENT = 11,
62 PAM_AUTHINFO_UNAVAIL = 12,
63 PAM_USER_UNKNOWN = 13,
64 PAM_CRED_UNAVAIL = 14,
65 PAM_CRED_EXPIRED = 15,
66 PAM_CRED_ERR = 16,
67 PAM_ACCT_EXPIRED = 17,
68 PAM_AUTHTOK_EXPIRED = 18,
69 PAM_SESSION_ERR = 19,
70 PAM_AUTHTOK_ERR = 20,
71 PAM_AUTHTOK_RECOVERY_ERR = 21,
72 PAM_AUTHTOK_LOCK_BUSY = 22,
73 PAM_AUTHTOK_DISABLE_AGING = 23,
74 PAM_NO_MODULE_DATA = 24,
75 PAM_IGNORE = 25,
76 PAM_ABORT = 26,
77 PAM_TRY_AGAIN = 27,
78 PAM_MODULE_UNKNOWN = 28,
79 PAM_DOMAIN_UNKNOWN = 29
80};
81
82/*
83 * XSSO 5.3
84 */
85enum {
86 PAM_PROMPT_ECHO_OFF = 1,
87 PAM_PROMPT_ECHO_ON = 2,
88 PAM_ERROR_MSG = 3,
89 PAM_TEXT_INFO = 4,
90 PAM_MAX_NUM_MSG = 32,
91 PAM_MAX_MSG_SIZE = 512,
92 PAM_MAX_RESP_SIZE = 512
93};
94
95/*
96 * XSSO 5.4
97 */
98enum {
99 PAM_SILENT = 0x80000000,
100 PAM_DISALLOW_NULL_AUTHTOK = 0x1,
101 PAM_ESTABLISH_CRED = 0x1,
102 PAM_DELETE_CRED = 0x2,
103 PAM_REINITIALIZE_CRED = 0x4,
104 PAM_REFRESH_CRED = 0x8,
105 PAM_PRELIM_CHECK = 0x1,
106 PAM_UPDATE_AUTHTOK = 0x2,
107 PAM_CHANGE_EXPIRED_AUTHTOK = 0x4
108};
109
110/*
111 * XSSO 5.5
112 */
113enum {
114 PAM_SERVICE = 1,
115 PAM_USER = 2,
116 PAM_TTY = 3,
117 PAM_RHOST = 4,
118 PAM_CONV = 5,
119 PAM_AUTHTOK = 6,
120 PAM_OLDAUTHTOK = 7,
121 PAM_RUSER = 8,
122 PAM_USER_PROMPT = 9,
35 */
36
37#ifndef _PAM_CONSTANTS_H_INCLUDED
38#define _PAM_CONSTANTS_H_INCLUDED
39
40#include <security/openpam_version.h>
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46/*
47 * XSSO 5.2
48 */
49enum {
50 PAM_SUCCESS = 0,
51 PAM_OPEN_ERR = 1,
52 PAM_SYMBOL_ERR = 2,
53 PAM_SERVICE_ERR = 3,
54 PAM_SYSTEM_ERR = 4,
55 PAM_BUF_ERR = 5,
56 PAM_CONV_ERR = 6,
57 PAM_PERM_DENIED = 7,
58 PAM_MAXTRIES = 8,
59 PAM_AUTH_ERR = 9,
60 PAM_NEW_AUTHTOK_REQD = 10,
61 PAM_CRED_INSUFFICIENT = 11,
62 PAM_AUTHINFO_UNAVAIL = 12,
63 PAM_USER_UNKNOWN = 13,
64 PAM_CRED_UNAVAIL = 14,
65 PAM_CRED_EXPIRED = 15,
66 PAM_CRED_ERR = 16,
67 PAM_ACCT_EXPIRED = 17,
68 PAM_AUTHTOK_EXPIRED = 18,
69 PAM_SESSION_ERR = 19,
70 PAM_AUTHTOK_ERR = 20,
71 PAM_AUTHTOK_RECOVERY_ERR = 21,
72 PAM_AUTHTOK_LOCK_BUSY = 22,
73 PAM_AUTHTOK_DISABLE_AGING = 23,
74 PAM_NO_MODULE_DATA = 24,
75 PAM_IGNORE = 25,
76 PAM_ABORT = 26,
77 PAM_TRY_AGAIN = 27,
78 PAM_MODULE_UNKNOWN = 28,
79 PAM_DOMAIN_UNKNOWN = 29
80};
81
82/*
83 * XSSO 5.3
84 */
85enum {
86 PAM_PROMPT_ECHO_OFF = 1,
87 PAM_PROMPT_ECHO_ON = 2,
88 PAM_ERROR_MSG = 3,
89 PAM_TEXT_INFO = 4,
90 PAM_MAX_NUM_MSG = 32,
91 PAM_MAX_MSG_SIZE = 512,
92 PAM_MAX_RESP_SIZE = 512
93};
94
95/*
96 * XSSO 5.4
97 */
98enum {
99 PAM_SILENT = 0x80000000,
100 PAM_DISALLOW_NULL_AUTHTOK = 0x1,
101 PAM_ESTABLISH_CRED = 0x1,
102 PAM_DELETE_CRED = 0x2,
103 PAM_REINITIALIZE_CRED = 0x4,
104 PAM_REFRESH_CRED = 0x8,
105 PAM_PRELIM_CHECK = 0x1,
106 PAM_UPDATE_AUTHTOK = 0x2,
107 PAM_CHANGE_EXPIRED_AUTHTOK = 0x4
108};
109
110/*
111 * XSSO 5.5
112 */
113enum {
114 PAM_SERVICE = 1,
115 PAM_USER = 2,
116 PAM_TTY = 3,
117 PAM_RHOST = 4,
118 PAM_CONV = 5,
119 PAM_AUTHTOK = 6,
120 PAM_OLDAUTHTOK = 7,
121 PAM_RUSER = 8,
122 PAM_USER_PROMPT = 9,
123 PAM_AUTHTOK_PROMPT = 10, /* OpenPAM extension */
124 PAM_OLDAUTHTOK_PROMPT = 11, /* OpenPAM extension */
125 PAM_REPOSITORY = 12,
123 PAM_REPOSITORY = 10,
124 PAM_AUTHTOK_PROMPT = 11, /* OpenPAM extension */
125 PAM_OLDAUTHTOK_PROMPT = 12, /* OpenPAM extension */
126 PAM_NUM_ITEMS /* OpenPAM extension */
127};
128
129#ifdef __cplusplus
130}
131#endif
132
133#endif
126 PAM_NUM_ITEMS /* OpenPAM extension */
127};
128
129#ifdef __cplusplus
130}
131#endif
132
133#endif