2 .\" Copyright (c) 2003, 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_STRERROR 3PAM "Jul 9, 2003"
8 pam_strerror \- get PAM error message string
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lpam\fR [ \fIlibrary\fR... ]
13 #include <security/pam_appl.h>
17 \fBconst char *\fR\fBpam_strerror\fR(\fBpam_handle_t*\fR\fIpamh\fR, \fBint\fR \fIerrnum\fR);
23 The \fBpam_strerror()\fR function maps the \fBPAM\fR error number in
24 \fIerrnum\fR to a \fBPAM\fR error message string, and returns a pointer to that
25 string. The application should not free or modify the string returned.
28 The \fIpamh\fR argument is the \fBPAM\fR handle obtained by a prior call to
29 \fBpam_start()\fR. If \fBpam_start()\fR returns an error, a null \fBPAM\fR
30 handle should be passed.
34 The \fBpam_strerror()\fR function returns the string "Unknown error" if
35 \fIerrnum\fR is out-of-range.
39 See \fBattributes\fR(5) for description 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_start\fR(3PAM), \fBattributes\fR(5)
61 The interfaces in \fBlibpam\fR are MT-Safe only if each thread within the
62 multithreaded application uses its own \fBPAM\fR handle.