2 .\" Copyright (c) 1998, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH PAM_GETENVLIST 3PAM "Oct 13, 1998"
8 pam_getenvlist \- returns a list of all the PAM environment variables
12 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lpam\fR [ \fIlibrary\fR ... ]
13 #include <security/pam_appl.h>
17 \fBchar **\fR\fBpam_getenvlist\fR(\fBpam_handle_t *\fR\fIpamh\fR);
23 The \fBpam_getenvlist()\fR function returns a list of all the \fBPAM\fR
24 environment variables stored in the \fBPAM\fR handle \fIpamh\fR. The list is
25 returned as a null-terminated array of pointers to strings. Each string
26 contains a single \fBPAM\fR environment variable of the form
27 \fIname\fR\fB=\fR\fIvalue\fR. The list returned is a duplicate copy of all the
28 environment variables stored in \fIpamh\fR. It is the responsibility of the
29 calling application to free the memory returned by \fBpam_getenvlist()\fR.
33 If successful, \fBpam_getenvlist()\fR returns in a null-terminated array a copy
34 of all the \fBPAM\fR environment variables stored in \fIpamh\fR. Otherwise,
35 \fBpam_getenvlist()\fR returns a null pointer.
39 See \fBattributes\fR(5) for descriptions of the following attributes:
47 ATTRIBUTE TYPE ATTRIBUTE VALUE
49 Interface Stability Stable
51 MT-Level MT-Safe with exceptions
57 \fBpam\fR(3PAM), \fBpam_getenv\fR(3PAM), \fBpam_putenv\fR(3PAM),
58 \fBlibpam\fR(3LIB), \fBattributes\fR(5)
62 The interfaces in \fBlibpam\fR are MT-Safe only if each thread within the
63 multithreaded application uses its own \fBPAM\fR handle.