4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 1992-1995, by Sun Microsystems, Inc.
24 * All rights reserved.
27 #ifndef _PAM_MODULES_H
28 #define _PAM_MODULES_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
72 * Be careful - there are flags defined for pam_chauthtok() in
75 #define PAM_PRELIM_CHECK 0x1
76 #define PAM_UPDATE_AUTHTOK 0x2
86 * pam_set_data is used to create module specific data, and
87 * to optionally add a cleanup handler that gets called by pam_end.
92 pam_handle_t
*pamh
, /* PAM handle */
93 const char *module_data_name
, /* unique module data name */
94 void *data
, /* the module specific data */
95 void (*cleanup
)(pam_handle_t
*pamh
, void *data
, int pam_end_status
)
99 * get module specific data set by pam_set_scheme_data.
100 * returns PAM_NO_MODULE_DATA if specified module data was not found.
104 const pam_handle_t
*pamh
,
105 const char *module_data_name
,
113 #endif /* _PAM_MODULES_H */