pam_constants.h revision 94670
11590Srgrimes/*- 21590Srgrimes * Copyright (c) 2002 Networks Associates Technology, Inc. 31590Srgrimes * All rights reserved. 41590Srgrimes * 51590Srgrimes * This software was developed for the FreeBSD Project by ThinkSec AS and 61590Srgrimes * NAI Labs, the Security Research Division of Network Associates, Inc. 71590Srgrimes * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the 81590Srgrimes * DARPA CHATS research program. 91590Srgrimes * 101590Srgrimes * Redistribution and use in source and binary forms, with or without 111590Srgrimes * modification, are permitted provided that the following conditions 121590Srgrimes * are met: 131590Srgrimes * 1. Redistributions of source code must retain the above copyright 141590Srgrimes * notice, this list of conditions and the following disclaimer. 151590Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 161590Srgrimes * notice, this list of conditions and the following disclaimer in the 171590Srgrimes * documentation and/or other materials provided with the distribution. 181590Srgrimes * 3. The name of the author may not be used to endorse or promote 191590Srgrimes * products derived from this software without specific prior written 201590Srgrimes * permission. 211590Srgrimes * 221590Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 231590Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 241590Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 251590Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 261590Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 271590Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 281590Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 291590Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 301590Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 311590Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 321590Srgrimes * SUCH DAMAGE. 331590Srgrimes * 341590Srgrimes * $P4: //depot/projects/openpam/include/security/pam_constants.h#14 $ 3558620Scharnier */ 361590Srgrimes 371590Srgrimes#ifndef _PAM_CONSTANTS_H_INCLUDED 381590Srgrimes#define _PAM_CONSTANTS_H_INCLUDED 391590Srgrimes 401590Srgrimes#include <security/openpam_version.h> 4195617Smarkm 421590Srgrimes#ifdef __cplusplus 431590Srgrimesextern "C" { 4495617Smarkm#endif 4595617Smarkm 4695617Smarkm/* 471590Srgrimes * XSSO 5.2 481590Srgrimes */ 491590Srgrimesenum { 501590Srgrimes PAM_SUCCESS = 0, 511590Srgrimes PAM_OPEN_ERR = 1, 521590Srgrimes PAM_SYMBOL_ERR = 2, 531590Srgrimes PAM_SERVICE_ERR = 3, 541590Srgrimes PAM_SYSTEM_ERR = 4, 551590Srgrimes PAM_BUF_ERR = 5, 561590Srgrimes PAM_CONV_ERR = 6, 571590Srgrimes PAM_PERM_DENIED = 7, 581590Srgrimes PAM_MAXTRIES = 8, 591590Srgrimes PAM_AUTH_ERR = 9, 601590Srgrimes PAM_NEW_AUTHTOK_REQD = 10, 611590Srgrimes PAM_CRED_INSUFFICIENT = 11, 621590Srgrimes PAM_AUTHINFO_UNAVAIL = 12, 631590Srgrimes PAM_USER_UNKNOWN = 13, 641590Srgrimes PAM_CRED_UNAVAIL = 14, 651590Srgrimes PAM_CRED_EXPIRED = 15, 66149719Sssouhlal PAM_CRED_ERR = 16, 671590Srgrimes PAM_ACCT_EXPIRED = 17, 681590Srgrimes PAM_AUTHTOK_EXPIRED = 18, 691590Srgrimes PAM_SESSION_ERR = 19, 701590Srgrimes PAM_AUTHTOK_ERR = 20, 711590Srgrimes PAM_AUTHTOK_RECOVERY_ERR = 21, 721590Srgrimes PAM_AUTHTOK_LOCK_BUSY = 22, 73111714Sjmallett PAM_AUTHTOK_DISABLE_AGING = 23, 741590Srgrimes PAM_NO_MODULE_DATA = 24, 7592921Simp PAM_IGNORE = 25, 7695617Smarkm PAM_ABORT = 26, 7792921Simp PAM_TRY_AGAIN = 27, 7892921Simp PAM_MODULE_UNKNOWN = 28, 79111714Sjmallett PAM_DOMAIN_UNKNOWN = 29 8092921Simp}; 8192921Simp 8292921Simp/* 831590Srgrimes * XSSO 5.3 841590Srgrimes */ 8595617Smarkmenum { 861590Srgrimes PAM_PROMPT_ECHO_OFF = 1, 8792921Simp PAM_PROMPT_ECHO_ON = 2, 88111714Sjmallett PAM_ERROR_MSG = 3, 891590Srgrimes PAM_TEXT_INFO = 4, 901590Srgrimes PAM_MAX_NUM_MSG = 32, 911590Srgrimes PAM_MAX_MSG_SIZE = 512, 9224360Simp PAM_MAX_RESP_SIZE = 512 931590Srgrimes}; 941590Srgrimes 951590Srgrimes/* 961590Srgrimes * XSSO 5.4 971590Srgrimes */ 981590Srgrimesenum { 991590Srgrimes PAM_SILENT = 0x80000000, 1001590Srgrimes PAM_DISALLOW_NULL_AUTHTOK = 0x1, 1011590Srgrimes PAM_ESTABLISH_CRED = 0x1, 1021590Srgrimes PAM_DELETE_CRED = 0x2, 1031590Srgrimes PAM_REINITIALIZE_CRED = 0x4, 1041590Srgrimes PAM_REFRESH_CRED = 0x8, 1051590Srgrimes PAM_PRELIM_CHECK = 0x1, 1061590Srgrimes PAM_UPDATE_AUTHTOK = 0x2, 1071590Srgrimes PAM_CHANGE_EXPIRED_AUTHTOK = 0x4 1081590Srgrimes}; 1098874Srgrimes 1101590Srgrimes/* 1111590Srgrimes * XSSO 5.5 1121590Srgrimes */ 1131590Srgrimesenum { 1141590Srgrimes PAM_SERVICE = 1, 1151590Srgrimes PAM_USER = 2, 1161590Srgrimes PAM_TTY = 3, 1171590Srgrimes PAM_RHOST = 4, 118111714Sjmallett PAM_CONV = 5, 119111714Sjmallett PAM_AUTHTOK = 6, 120111714Sjmallett PAM_OLDAUTHTOK = 7, 121111714Sjmallett PAM_RUSER = 8, 122111714Sjmallett PAM_USER_PROMPT = 9, 123111714Sjmallett PAM_AUTHTOK_PROMPT = 10, /* OpenPAM extension */ 124111714Sjmallett PAM_OLDAUTHTOK_PROMPT = 11, /* OpenPAM extension */ 125111714Sjmallett PAM_NUM_ITEMS /* OpenPAM extension */ 126111714Sjmallett}; 127111714Sjmallett 128111714Sjmallett#ifdef __cplusplus 129111714Sjmallett} 130111714Sjmallett#endif 131111714Sjmallett 132111714Sjmallett#endif 133111714Sjmallett